aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/GlobalTimer.java
diff options
context:
space:
mode:
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;
}
+
}