Merge pull request #92 from motlin/master
Fixes from static-analysis tools
This commit is contained in:
commit
040b74f764
@ -46,7 +46,7 @@ public class WebSocketServerIndexPage {
|
|||||||
"} else {" + NEWLINE +
|
"} else {" + NEWLINE +
|
||||||
" alert(\"Your browser does not support Web Socket.\");" + NEWLINE +
|
" alert(\"Your browser does not support Web Socket.\");" + NEWLINE +
|
||||||
"}" + NEWLINE +
|
"}" + NEWLINE +
|
||||||
"" + NEWLINE +
|
NEWLINE +
|
||||||
"function send(message) {" + NEWLINE +
|
"function send(message) {" + NEWLINE +
|
||||||
" if (!window.WebSocket) { return; }" + NEWLINE +
|
" if (!window.WebSocket) { return; }" + NEWLINE +
|
||||||
" if (socket.readyState == WebSocket.OPEN) {" + NEWLINE +
|
" if (socket.readyState == WebSocket.OPEN) {" + NEWLINE +
|
||||||
|
@ -50,7 +50,7 @@ public class WebSocketServerIndexPage {
|
|||||||
"} else {" + NEWLINE +
|
"} else {" + NEWLINE +
|
||||||
" alert(\"Your browser does not support Web Socket.\");" + NEWLINE +
|
" alert(\"Your browser does not support Web Socket.\");" + NEWLINE +
|
||||||
"}" + NEWLINE +
|
"}" + NEWLINE +
|
||||||
"" + NEWLINE +
|
NEWLINE +
|
||||||
"function send(message) {" + NEWLINE +
|
"function send(message) {" + NEWLINE +
|
||||||
" if (!window.WebSocket) { return; }" + NEWLINE +
|
" if (!window.WebSocket) { return; }" + NEWLINE +
|
||||||
" if (socket.readyState == WebSocket.OPEN) {" + NEWLINE +
|
" if (socket.readyState == WebSocket.OPEN) {" + NEWLINE +
|
||||||
|
@ -50,7 +50,7 @@ public class WebSocketSslServerIndexPage {
|
|||||||
"} else {" + NEWLINE +
|
"} else {" + NEWLINE +
|
||||||
" alert(\"Your browser does not support Web Socket.\");" + NEWLINE +
|
" alert(\"Your browser does not support Web Socket.\");" + NEWLINE +
|
||||||
"}" + NEWLINE +
|
"}" + NEWLINE +
|
||||||
"" + NEWLINE +
|
NEWLINE +
|
||||||
"function send(message) {" + NEWLINE +
|
"function send(message) {" + NEWLINE +
|
||||||
" if (!window.WebSocket) { return; }" + NEWLINE +
|
" if (!window.WebSocket) { return; }" + NEWLINE +
|
||||||
" if (socket.readyState == WebSocket.OPEN) {" + NEWLINE +
|
" if (socket.readyState == WebSocket.OPEN) {" + NEWLINE +
|
||||||
|
@ -92,8 +92,6 @@ public class WebSocketSslServerSslContext {
|
|||||||
throw new Error("Failed to initialize the server-side SSLContext", e);
|
throw new Error("Failed to initialize the server-side SSLContext", e);
|
||||||
}
|
}
|
||||||
_serverContext = serverContext;
|
_serverContext = serverContext;
|
||||||
|
|
||||||
return;
|
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
logger.error("Error initializing SslContextManager. " + ex.getMessage(), ex);
|
logger.error("Error initializing SslContextManager. " + ex.getMessage(), ex);
|
||||||
System.exit(1);
|
System.exit(1);
|
||||||
|
@ -93,6 +93,6 @@ public class LocalTimeServerHandler extends SimpleChannelUpstreamHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static String toString(Continent c) {
|
private static String toString(Continent c) {
|
||||||
return "" + c.name().charAt(0) + c.name().toLowerCase().substring(1);
|
return c.name().charAt(0) + c.name().toLowerCase().substring(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user