aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornativbarak <nativ@globekeeper.com>2018-02-04 17:26:05 +0200
committernativbarak <nativ@globekeeper.com>2018-02-04 17:26:05 +0200
commit6ae8a397c29a3d7a16d9cf481e2141e3e70921fd (patch)
tree2221585e9dac7efd31d1ad062e49227e265983e7
parentfc3106e742beba6aeaebb66083380c6b9e1082d0 (diff)
downloadtraccar-server-6ae8a397c29a3d7a16d9cf481e2141e3e70921fd.tar.gz
traccar-server-6ae8a397c29a3d7a16d9cf481e2141e3e70921fd.tar.bz2
traccar-server-6ae8a397c29a3d7a16d9cf481e2141e3e70921fd.zip
code refactoring
-rw-r--r--src/org/traccar/WebDataHandler.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/org/traccar/WebDataHandler.java b/src/org/traccar/WebDataHandler.java
index a4c95aa3c..a30a41208 100644
--- a/src/org/traccar/WebDataHandler.java
+++ b/src/org/traccar/WebDataHandler.java
@@ -22,10 +22,16 @@ import org.traccar.helper.Log;
import org.traccar.model.Device;
import org.traccar.model.Position;
+import java.util.HashMap;
+import java.util.Map;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
-import java.util.*;
+import java.util.Calendar;
+import java.util.Formatter;
+import java.util.Locale;
+import java.util.TimeZone;
+
public class WebDataHandler extends BaseDataHandler {
@@ -129,7 +135,7 @@ public class WebDataHandler extends BaseDataHandler {
setContent(position, requestBuilder);
requestBuilder.execute();
-
+
} else {
Context.getAsyncHttpClient().prepareGet(formatRequest(position)).execute();
}