From 5a80591e29ee7b05ed50737e3d5d6bb98c1f59a3 Mon Sep 17 00:00:00 2001 From: Leandro Silva Ferreira Date: Sat, 4 Aug 2012 17:26:40 -0400 Subject: Mais correções de identações para testes com github MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/org/traccar/Server.java | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) (limited to 'src') 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)); } }); -- cgit v1.2.3