aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-01-05 12:46:34 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-01-05 12:46:34 +1300
commitaf0d47565a881083ae0409fc341eb655ef66219c (patch)
tree52f83a2f3b3cb11baa744953c4169f4c99bdf1e6 /src
parent547ba114449a882839498044d1bf9d0592c2174f (diff)
downloadtrackermap-server-af0d47565a881083ae0409fc341eb655ef66219c.tar.gz
trackermap-server-af0d47565a881083ae0409fc341eb655ef66219c.tar.bz2
trackermap-server-af0d47565a881083ae0409fc341eb655ef66219c.zip
Remove unused imports and fix other issues
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/helper/DateUtil.java5
-rw-r--r--src/org/traccar/protocol/NvsProtocolDecoder.java2
-rw-r--r--src/org/traccar/web/WebServer.java2
3 files changed, 5 insertions, 4 deletions
diff --git a/src/org/traccar/helper/DateUtil.java b/src/org/traccar/helper/DateUtil.java
index 9d4148ac1..0dca88a2b 100644
--- a/src/org/traccar/helper/DateUtil.java
+++ b/src/org/traccar/helper/DateUtil.java
@@ -18,7 +18,10 @@ package org.traccar.helper;
import java.util.Calendar;
import java.util.Date;
-public class DateUtil {
+public final class DateUtil {
+
+ private DateUtil() {
+ }
public static Date correctDay(Date guess) {
return correctDate(new Date(), guess, Calendar.DAY_OF_MONTH);
diff --git a/src/org/traccar/protocol/NvsProtocolDecoder.java b/src/org/traccar/protocol/NvsProtocolDecoder.java
index 3c42843f0..3656f4be2 100644
--- a/src/org/traccar/protocol/NvsProtocolDecoder.java
+++ b/src/org/traccar/protocol/NvsProtocolDecoder.java
@@ -16,10 +16,8 @@
package org.traccar.protocol;
import org.jboss.netty.buffer.ChannelBuffer;
-import org.jboss.netty.buffer.ChannelBuffers;
import org.jboss.netty.channel.Channel;
import org.traccar.BaseProtocolDecoder;
-import org.traccar.helper.BitUtil;
import org.traccar.helper.UnitsConverter;
import org.traccar.model.Event;
import org.traccar.model.Position;
diff --git a/src/org/traccar/web/WebServer.java b/src/org/traccar/web/WebServer.java
index 85cc5f75c..d6cd19d87 100644
--- a/src/org/traccar/web/WebServer.java
+++ b/src/org/traccar/web/WebServer.java
@@ -150,7 +150,7 @@ public class WebServer {
ServletContextHandler servletHandler = new ServletContextHandler(ServletContextHandler.SESSIONS);
servletHandler.setContextPath("/api");
servletHandler.getSessionHandler().setSessionManager(sessionManager);
-
+
servletHandler.addServlet(new ServletHolder(new AsyncServlet()), "/async/*");
servletHandler.addServlet(new ServletHolder(new ServerServlet()), "/server/*");
servletHandler.addServlet(new ServletHolder(new UserServlet()), "/user/*");