diff options
author | Leandro Silva Ferreira <leandrosilvaferreira@gmail.com> | 2012-08-04 17:26:40 -0400 |
---|---|---|
committer | Leandro Silva Ferreira <leandrosilvaferreira@gmail.com> | 2012-08-04 17:26:40 -0400 |
commit | 5a80591e29ee7b05ed50737e3d5d6bb98c1f59a3 (patch) | |
tree | 9f34d8c6edc1a9459d3ac287f0e7ddfb94d8ace8 /src/org | |
parent | 1205bd5f9b708ff2633551e6e38f4e90b1efd35b (diff) | |
download | trackermap-server-5a80591e29ee7b05ed50737e3d5d6bb98c1f59a3.tar.gz trackermap-server-5a80591e29ee7b05ed50737e3d5d6bb98c1f59a3.tar.bz2 trackermap-server-5a80591e29ee7b05ed50737e3d5d6bb98c1f59a3.zip |
Mais correções de identações para testes com github
Diffstat (limited to 'src/org')
-rw-r--r-- | src/org/traccar/Server.java | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/src/org/traccar/Server.java b/src/org/traccar/Server.java index df035fc21..612eeb32a 100644 --- a/src/org/traccar/Server.java +++ b/src/org/traccar/Server.java @@ -172,15 +172,12 @@ public class Server { // Simple formatter file.setFormatter(new Formatter() { - private final String LINE_SEPARATOR = System.getProperty( - "line.separator", "\n"); + private final String LINE_SEPARATOR = System.getProperty("line.separator", "\n"); - private final DateFormat dateFormat = new SimpleDateFormat( - "yyyy-MM-dd hh:mm:ss"); + private final DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss"); public String format(LogRecord record) { - String line = dateFormat.format(new Date(record - .getMillis())); + String line = dateFormat.format(new Date(record.getMillis())); line += " " + record.getLevel().getName() + ": "; line += formatMessage(record); line += LINE_SEPARATOR; @@ -233,18 +230,14 @@ public class Server { String protocol = "xexun"; if (isProtocolEnabled(properties, protocol)) { - TrackerServer server = new TrackerServer(getProtocolPort( - properties, protocol)); - final Integer resetDelay = getProtocolResetDelay(properties, - protocol); + TrackerServer server = new TrackerServer(getProtocolPort(properties, protocol)); + final Integer resetDelay = getProtocolResetDelay(properties,protocol); - server.setPipelineFactory(new GenericPipelineFactory(server, - dataManager, isLoggerEnabled(), geocoder) { + server.setPipelineFactory(new GenericPipelineFactory(server,dataManager, isLoggerEnabled(), geocoder) { protected void addSpecificHandlers(ChannelPipeline pipeline) { pipeline.addLast("frameDecoder", new XexunFrameDecoder()); pipeline.addLast("stringDecoder", new StringDecoder()); - pipeline.addLast("objectDecoder", new XexunProtocolDecoder( - getDataManager(), resetDelay)); + pipeline.addLast("objectDecoder", new XexunProtocolDecoder(getDataManager(), resetDelay)); } }); |