aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/GlobalTimer.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-07 19:17:59 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-07 19:17:59 +1300
commit3bf3ade7e1e0f7abf69d0e98ed064f455e2cff69 (patch)
tree1b24cb81652b072277bbc8207c643240e809e893 /src/org/traccar/GlobalTimer.java
parentc344d4086bb2179d485c9b25af4d737e26f23221 (diff)
downloadtrackermap-server-3bf3ade7e1e0f7abf69d0e98ed064f455e2cff69.tar.gz
trackermap-server-3bf3ade7e1e0f7abf69d0e98ed064f455e2cff69.tar.bz2
trackermap-server-3bf3ade7e1e0f7abf69d0e98ed064f455e2cff69.zip
Clean up some model classes
Diffstat (limited to 'src/org/traccar/GlobalTimer.java')
-rw-r--r--src/org/traccar/GlobalTimer.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/org/traccar/GlobalTimer.java b/src/org/traccar/GlobalTimer.java
index 33b916c1b..f5dc9b87a 100644
--- a/src/org/traccar/GlobalTimer.java
+++ b/src/org/traccar/GlobalTimer.java
@@ -18,10 +18,7 @@ package org.traccar;
import org.jboss.netty.util.HashedWheelTimer;
import org.jboss.netty.util.Timer;
-/**
- * Global idle timer
- */
-public class GlobalTimer {
+public final class GlobalTimer {
private static Timer instance = null;
@@ -36,9 +33,10 @@ public class GlobalTimer {
}
public static Timer getTimer() {
- if(instance == null) {
+ if (instance == null) {
instance = new HashedWheelTimer();
}
return instance;
}
+
}