GUACAMOLE-504: Fix-up style issues.

This commit is contained in:
Nick Couchman
2018-02-08 23:31:06 -05:00
parent ffc4c7bcad
commit ebd897421d
2 changed files with 3 additions and 4 deletions

View File

@@ -165,7 +165,6 @@ public abstract class GuacamoleHTTPTunnelServlet extends HttpServlet {
int guacamoleHttpCode, String message) int guacamoleHttpCode, String message)
throws ServletException { throws ServletException {
try { try {
// If response not committed, send error code and message // If response not committed, send error code and message
@@ -241,14 +240,14 @@ public abstract class GuacamoleHTTPTunnelServlet extends HttpServlet {
// If read operation, call doRead() with tunnel UUID, ignoring any // If read operation, call doRead() with tunnel UUID, ignoring any
// characters following the tunnel UUID. // characters following the tunnel UUID.
else if(query.startsWith(READ_PREFIX)) else if (query.startsWith(READ_PREFIX))
doRead(request, response, query.substring( doRead(request, response, query.substring(
READ_PREFIX_LENGTH, READ_PREFIX_LENGTH,
READ_PREFIX_LENGTH + UUID_LENGTH)); READ_PREFIX_LENGTH + UUID_LENGTH));
// If write operation, call doWrite() with tunnel UUID, ignoring any // If write operation, call doWrite() with tunnel UUID, ignoring any
// characters following the tunnel UUID. // characters following the tunnel UUID.
else if(query.startsWith(WRITE_PREFIX)) else if (query.startsWith(WRITE_PREFIX))
doWrite(request, response, query.substring( doWrite(request, response, query.substring(
WRITE_PREFIX_LENGTH, WRITE_PREFIX_LENGTH,
WRITE_PREFIX_LENGTH + UUID_LENGTH)); WRITE_PREFIX_LENGTH + UUID_LENGTH));

View File

@@ -69,7 +69,7 @@ public abstract class GuacamoleWebSocketTunnelServlet extends WebSocketServlet {
Integer webSocketCode) { Integer webSocketCode) {
try { try {
if(webSocketCode == null) if (webSocketCode == null)
webSocketCode = guac_status.getWebSocketCode(); webSocketCode = guac_status.getWebSocketCode();
byte[] message = Integer.toString(guac_status.getGuacamoleStatusCode()).getBytes("UTF-8"); byte[] message = Integer.toString(guac_status.getGuacamoleStatusCode()).getBytes("UTF-8");
outbound.close(webSocketCode, ByteBuffer.wrap(message)); outbound.close(webSocketCode, ByteBuffer.wrap(message));