Remove concatenation with empty string
This commit is contained in:
parent
b0b765001c
commit
00d9111833
@ -15,13 +15,6 @@
|
||||
*/
|
||||
package org.jboss.netty.example.localtime;
|
||||
|
||||
import static java.util.Calendar.*;
|
||||
|
||||
import java.util.Calendar;
|
||||
import java.util.TimeZone;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
import org.jboss.netty.channel.ChannelEvent;
|
||||
import org.jboss.netty.channel.ChannelHandlerContext;
|
||||
import org.jboss.netty.channel.ChannelStateEvent;
|
||||
@ -35,6 +28,13 @@ import org.jboss.netty.example.localtime.LocalTimeProtocol.LocalTimes;
|
||||
import org.jboss.netty.example.localtime.LocalTimeProtocol.Location;
|
||||
import org.jboss.netty.example.localtime.LocalTimeProtocol.Locations;
|
||||
|
||||
import java.util.Calendar;
|
||||
import java.util.TimeZone;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
import static java.util.Calendar.*;
|
||||
|
||||
public class LocalTimeServerHandler extends SimpleChannelUpstreamHandler {
|
||||
|
||||
private static final Logger logger = Logger.getLogger(
|
||||
@ -87,6 +87,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