Remove trailing whitespace from lines.

This commit is contained in:
Michael Jumper
2013-02-21 11:30:50 -08:00
parent 586c9b4f83
commit 3ea725ae3a
4 changed files with 13 additions and 13 deletions

View File

@@ -117,12 +117,12 @@ public class ConfiguredGuacamoleSocket implements GuacamoleSocket {
// Wait for server args // Wait for server args
GuacamoleInstruction instruction; GuacamoleInstruction instruction;
do { do {
// Read instruction, fail if end-of-stream // Read instruction, fail if end-of-stream
instruction = reader.readInstruction(); instruction = reader.readInstruction();
if (instruction == null) if (instruction == null)
throw new GuacamoleServerException("End of stream during initial handshake."); throw new GuacamoleServerException("End of stream during initial handshake.");
} while (!instruction.getOpcode().equals("args")); } while (!instruction.getOpcode().equals("args"));
// Build args list off provided names and config // Build args list off provided names and config
@@ -144,7 +144,7 @@ public class ConfiguredGuacamoleSocket implements GuacamoleSocket {
} }
// Send size // Send size
writer.writeInstruction( writer.writeInstruction(
new GuacamoleInstruction( new GuacamoleInstruction(
"size", "size",

View File

@@ -58,12 +58,12 @@ public class GuacamoleClientInformation {
* The optimal screen height requested by the client, in pixels. * The optimal screen height requested by the client, in pixels.
*/ */
private int optimalScreenHeight = 768; private int optimalScreenHeight = 768;
/** /**
* The list of audio mimetypes reported by the client to be supported. * The list of audio mimetypes reported by the client to be supported.
*/ */
private List<String> audioMimetypes = new ArrayList<String>(); private List<String> audioMimetypes = new ArrayList<String>();
/** /**
* The list of audio mimetypes reported by the client to be supported. * The list of audio mimetypes reported by the client to be supported.
*/ */
@@ -105,7 +105,7 @@ public class GuacamoleClientInformation {
* Returns the list of audio mimetypes supported by the client. To add or * Returns the list of audio mimetypes supported by the client. To add or
* removed supported mimetypes, the list returned by this function can be * removed supported mimetypes, the list returned by this function can be
* modified. * modified.
* *
* @return The set of audio mimetypes supported by the client. * @return The set of audio mimetypes supported by the client.
*/ */
public List<String> getAudioMimetypes() { public List<String> getAudioMimetypes() {
@@ -116,7 +116,7 @@ public class GuacamoleClientInformation {
* Returns the list of video mimetypes supported by the client. To add or * Returns the list of video mimetypes supported by the client. To add or
* removed supported mimetypes, the list returned by this function can be * removed supported mimetypes, the list returned by this function can be
* modified. * modified.
* *
* @return The set of video mimetypes supported by the client. * @return The set of video mimetypes supported by the client.
*/ */
public List<String> getVideoMimetypes() { public List<String> getVideoMimetypes() {

View File

@@ -104,18 +104,18 @@ public class GuacamoleConfiguration implements Serializable {
/** /**
* Removes the value set for the parameter with the given name. * Removes the value set for the parameter with the given name.
* *
* @param name The name of the parameter to remove the value of. * @param name The name of the parameter to remove the value of.
*/ */
public void unsetParameter(String name) { public void unsetParameter(String name) {
parameters.remove(name); parameters.remove(name);
} }
/** /**
* Returns a set of all currently defined parameter names. Each name * Returns a set of all currently defined parameter names. Each name
* corresponds to a parameter that has a value set on this * corresponds to a parameter that has a value set on this
* GuacamoleConfiguration via setParameter(). * GuacamoleConfiguration via setParameter().
* *
* @return A set of all currently defined parameter names. * @return A set of all currently defined parameter names.
*/ */
public Set<String> getParameterNames() { public Set<String> getParameterNames() {

View File

@@ -164,7 +164,7 @@ public abstract class GuacamoleHTTPTunnelServlet extends HttpServlet {
try { try {
// Ensure buggy browsers do not cache response // Ensure buggy browsers do not cache response
response.setHeader("Cache-Control", "no-cache"); response.setHeader("Cache-Control", "no-cache");
// Send UUID to client // Send UUID to client
response.getWriter().print(tunnel.getUUID().toString()); response.getWriter().print(tunnel.getUUID().toString());
} }
@@ -403,12 +403,12 @@ public abstract class GuacamoleHTTPTunnelServlet extends HttpServlet {
// Buffer // Buffer
int length; int length;
char[] buffer = new char[8192]; char[] buffer = new char[8192];
// Transfer data using buffer // Transfer data using buffer
while (tunnel.isOpen() && while (tunnel.isOpen() &&
(length = input.read(buffer, 0, buffer.length)) != -1) (length = input.read(buffer, 0, buffer.length)) != -1)
writer.write(buffer, 0, length); writer.write(buffer, 0, length);
} }
// Close input stream in all cases // Close input stream in all cases