aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/database
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/database')
-rw-r--r--src/org/traccar/database/ConnectionManager.java4
-rw-r--r--src/org/traccar/database/IdentityManager.java4
-rw-r--r--src/org/traccar/database/QueryBuilder.java3
3 files changed, 5 insertions, 6 deletions
diff --git a/src/org/traccar/database/ConnectionManager.java b/src/org/traccar/database/ConnectionManager.java
index c34428af5..e45c83651 100644
--- a/src/org/traccar/database/ConnectionManager.java
+++ b/src/org/traccar/database/ConnectionManager.java
@@ -91,8 +91,8 @@ public class ConnectionManager {
return result;
}
- public static interface DataCacheListener {
- public void onUpdate(Position position);
+ public interface DataCacheListener {
+ void onUpdate(Position position);
}
public void addListener(Collection<Long> devices, DataCacheListener listener) {
diff --git a/src/org/traccar/database/IdentityManager.java b/src/org/traccar/database/IdentityManager.java
index b24bf79ed..8bdce09a3 100644
--- a/src/org/traccar/database/IdentityManager.java
+++ b/src/org/traccar/database/IdentityManager.java
@@ -19,8 +19,8 @@ import org.traccar.model.Device;
public interface IdentityManager {
- public Device getDeviceById(long id);
+ Device getDeviceById(long id);
- public Device getDeviceByUniqueId(String uniqueId) throws Exception;
+ Device getDeviceByUniqueId(String uniqueId) throws Exception;
}
diff --git a/src/org/traccar/database/QueryBuilder.java b/src/org/traccar/database/QueryBuilder.java
index 7bec25ee5..09fb19d13 100644
--- a/src/org/traccar/database/QueryBuilder.java
+++ b/src/org/traccar/database/QueryBuilder.java
@@ -36,7 +36,6 @@ import javax.json.Json;
import javax.json.JsonReader;
import javax.json.stream.JsonParsingException;
import javax.sql.DataSource;
-
import org.traccar.Context;
import org.traccar.model.Factory;
import org.traccar.model.MiscFormatter;
@@ -267,7 +266,7 @@ public class QueryBuilder {
}
private interface ResultSetProcessor<T> {
- public void process(T object, ResultSet resultSet) throws SQLException;
+ void process(T object, ResultSet resultSet) throws SQLException;
}
public <T extends Factory> T executeQuerySingle(T prototype) throws SQLException {