aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorGabor Somogyi <Gabor_Somogyi@epam.com>2016-05-04 14:15:49 +0200
committerGabor Somogyi <Gabor_Somogyi@epam.com>2016-05-04 14:15:49 +0200
commit5bf82eff1ecac7b23661cea14be26aa7a3e4d09a (patch)
tree87db95cff41412be6931646b10f11465d0be6428 /src/org/traccar
parent51571eee9527ce192d80a1e4c542a60b9ca770d0 (diff)
downloadtraccar-server-5bf82eff1ecac7b23661cea14be26aa7a3e4d09a.tar.gz
traccar-server-5bf82eff1ecac7b23661cea14be26aa7a3e4d09a.tar.bz2
traccar-server-5bf82eff1ecac7b23661cea14be26aa7a3e4d09a.zip
Checkstyle fix
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/ServerManager.java10
-rw-r--r--src/org/traccar/api/resource/SupportedCommandResource.java6
-rw-r--r--src/org/traccar/web/WebServer.java11
3 files changed, 23 insertions, 4 deletions
diff --git a/src/org/traccar/ServerManager.java b/src/org/traccar/ServerManager.java
index 73c21599f..59bb88829 100644
--- a/src/org/traccar/ServerManager.java
+++ b/src/org/traccar/ServerManager.java
@@ -20,7 +20,13 @@ import java.net.URI;
import java.net.URL;
import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;
-import java.util.*;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Enumeration;
+import java.util.HashMap;
+import java.util.LinkedList;
+import java.util.List;
+import java.util.Map;
import java.util.jar.JarEntry;
import java.util.jar.JarFile;
@@ -91,7 +97,7 @@ public class ServerManager {
}
public Collection<String> getProtocolSuppportedCommands(String protocol) {
- ArrayList<String> result = new ArrayList<>();
+ List<String> result = new ArrayList<>();
if (protocol != null) {
BaseProtocol baseProtocol = protocols.get(protocol);
diff --git a/src/org/traccar/api/resource/SupportedCommandResource.java b/src/org/traccar/api/resource/SupportedCommandResource.java
index 097acaa4f..393588d9b 100644
--- a/src/org/traccar/api/resource/SupportedCommandResource.java
+++ b/src/org/traccar/api/resource/SupportedCommandResource.java
@@ -19,7 +19,11 @@ import org.traccar.Context;
import org.traccar.api.BaseResource;
import org.traccar.model.Position;
-import javax.ws.rs.*;
+import javax.ws.rs.Consumes;
+import javax.ws.rs.GET;
+import javax.ws.rs.Path;
+import javax.ws.rs.Produces;
+import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;
import java.sql.SQLException;
import java.util.Collection;
diff --git a/src/org/traccar/web/WebServer.java b/src/org/traccar/web/WebServer.java
index 46add3a75..e61bf3d45 100644
--- a/src/org/traccar/web/WebServer.java
+++ b/src/org/traccar/web/WebServer.java
@@ -41,7 +41,16 @@ import org.traccar.api.CorsResponseFilter;
import org.traccar.api.ObjectMapperProvider;
import org.traccar.api.ResourceErrorHandler;
import org.traccar.api.SecurityRequestFilter;
-import org.traccar.api.resource.*;
+import org.traccar.api.resource.CommandResource;
+import org.traccar.api.resource.GroupPermissionResource;
+import org.traccar.api.resource.ServerResource;
+import org.traccar.api.resource.SessionResource;
+import org.traccar.api.resource.DevicePermissionResource;
+import org.traccar.api.resource.UserResource;
+import org.traccar.api.resource.GroupResource;
+import org.traccar.api.resource.DeviceResource;
+import org.traccar.api.resource.PositionResource;
+import org.traccar.api.resource.SupportedCommandResource;
import org.traccar.helper.Log;
public class WebServer {