Remove unnecessary concatenation with empty strings.
This commit is contained in:
parent
7ddf1b1ae1
commit
461837e14b
@ -46,7 +46,7 @@ public class WebSocketServerIndexPage {
|
||||
"} else {" + NEWLINE +
|
||||
" alert(\"Your browser does not support Web Socket.\");" + NEWLINE +
|
||||
"}" + NEWLINE +
|
||||
"" + NEWLINE +
|
||||
NEWLINE +
|
||||
"function send(message) {" + NEWLINE +
|
||||
" if (!window.WebSocket) { return; }" + NEWLINE +
|
||||
" if (socket.readyState == WebSocket.OPEN) {" + NEWLINE +
|
||||
|
@ -50,7 +50,7 @@ public class WebSocketServerIndexPage {
|
||||
"} else {" + NEWLINE +
|
||||
" alert(\"Your browser does not support Web Socket.\");" + NEWLINE +
|
||||
"}" + NEWLINE +
|
||||
"" + NEWLINE +
|
||||
NEWLINE +
|
||||
"function send(message) {" + NEWLINE +
|
||||
" if (!window.WebSocket) { return; }" + NEWLINE +
|
||||
" if (socket.readyState == WebSocket.OPEN) {" + NEWLINE +
|
||||
|
@ -50,7 +50,7 @@ public class WebSocketSslServerIndexPage {
|
||||
"} else {" + NEWLINE +
|
||||
" alert(\"Your browser does not support Web Socket.\");" + NEWLINE +
|
||||
"}" + NEWLINE +
|
||||
"" + NEWLINE +
|
||||
NEWLINE +
|
||||
"function send(message) {" + NEWLINE +
|
||||
" if (!window.WebSocket) { return; }" + NEWLINE +
|
||||
" if (socket.readyState == WebSocket.OPEN) {" + NEWLINE +
|
||||
|
@ -93,6 +93,6 @@ public class LocalTimeServerHandler extends SimpleChannelUpstreamHandler {
|
||||
}
|
||||
|
||||
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…
x
Reference in New Issue
Block a user