Remove unnecessary concatenation with empty strings.

This commit is contained in:
Craig P. Motlin 2011-11-14 19:14:06 -05:00
parent 7ddf1b1ae1
commit 461837e14b
4 changed files with 4 additions and 4 deletions

View File

@ -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 +

View File

@ -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 +

View File

@ -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 +

View File

@ -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);
}
}