diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-14 10:10:30 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-14 10:10:30 +1300 |
commit | 26659e3631901a46e35a5c2ac89c698a52277b0a (patch) | |
tree | e79af12bbeb18da1d879b11f066da96517bf9a4c /src/org/traccar/Context.java | |
parent | 398b705820109c1103d915a2fec81fcf70b032cf (diff) | |
download | trackermap-server-26659e3631901a46e35a5c2ac89c698a52277b0a.tar.gz trackermap-server-26659e3631901a46e35a5c2ac89c698a52277b0a.tar.bz2 trackermap-server-26659e3631901a46e35a5c2ac89c698a52277b0a.zip |
Fix some check style issues
Diffstat (limited to 'src/org/traccar/Context.java')
-rw-r--r-- | src/org/traccar/Context.java | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/org/traccar/Context.java b/src/org/traccar/Context.java index eb84b4ac5..113ed02ec 100644 --- a/src/org/traccar/Context.java +++ b/src/org/traccar/Context.java @@ -31,7 +31,10 @@ import org.traccar.geocode.ReverseGeocoder; import org.traccar.helper.Log; import org.traccar.web.WebServer; -public class Context { +public final class Context { + + private Context() { + } private static Config config; @@ -87,10 +90,10 @@ public class Context { return serverManager; } - private static final AsyncHttpClient asyncHttpClient = new AsyncHttpClient(); + private static final AsyncHttpClient ASYNC_HTTP_CLIENT = new AsyncHttpClient(); public static AsyncHttpClient getAsyncHttpClient() { - return asyncHttpClient; + return ASYNC_HTTP_CLIENT; } public static void init(String[] arguments) throws Exception { @@ -142,7 +145,8 @@ public class Context { } if (config.getBoolean("web.enable")) { - if (config.getString("web.type", "new").equals("new") || config.getString("web.type", "new").equals("api")) { + if (config.getString("web.type", "new").equals("new") + || config.getString("web.type", "new").equals("api")) { permissionsManager = new PermissionsManager(dataManager); } webServer = new WebServer(config, dataManager.getDataSource()); |