aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <atananaev@lyft.com>2020-12-28 14:42:28 -0800
committerAnton Tananaev <atananaev@lyft.com>2020-12-28 14:42:28 -0800
commit64c5916acf62fc97a66726abdbdf05d8434c03db (patch)
tree5d1d4cb2fe90311ed4dba0387d7995f0e67845f2
parent800a5a3d04dde2cb6143fa8d5360b5cec8475f18 (diff)
downloadtrackermap-server-64c5916acf62fc97a66726abdbdf05d8434c03db.tar.gz
trackermap-server-64c5916acf62fc97a66726abdbdf05d8434c03db.tar.bz2
trackermap-server-64c5916acf62fc97a66726abdbdf05d8434c03db.zip
Fix wrong types
-rw-r--r--src/main/java/org/traccar/config/Config.java2
-rw-r--r--src/main/java/org/traccar/config/Keys.java6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/org/traccar/config/Config.java b/src/main/java/org/traccar/config/Config.java
index dd63c2999..6cc21cbeb 100644
--- a/src/main/java/org/traccar/config/Config.java
+++ b/src/main/java/org/traccar/config/Config.java
@@ -55,7 +55,7 @@ public class Config {
}
}
- public boolean hasKey(ConfigKey<String> key) {
+ public boolean hasKey(ConfigKey<?> key) {
return hasKey(key.getKey());
}
diff --git a/src/main/java/org/traccar/config/Keys.java b/src/main/java/org/traccar/config/Keys.java
index cc4211d8b..3a42a66a1 100644
--- a/src/main/java/org/traccar/config/Keys.java
+++ b/src/main/java/org/traccar/config/Keys.java
@@ -40,7 +40,7 @@ public final class Keys {
* Address for uploading aggregated anonymous usage statistics. Uploaded information is the same you can see on the
* statistics screen in the web app. It does not include any sensitive (e.g. locations).
*/
- public static final ConfigKey<Boolean> SERVER_STATISTICS = new ConfigKey<>(
+ public static final ConfigKey<String> SERVER_STATISTICS = new ConfigKey<>(
"server.statistics",
Collections.singletonList(KeyType.GLOBAL));
@@ -547,7 +547,7 @@ public final class Keys {
* Override latitude sign / hemisphere. Useful in cases where value is incorrect because of device bug. Value can be
* N for North or S for South.
*/
- public static final ConfigKey<Boolean> LOCATION_LATITUDE_HEMISPHERE = new ConfigKey<>(
+ public static final ConfigKey<String> LOCATION_LATITUDE_HEMISPHERE = new ConfigKey<>(
"location.latitudeHemisphere",
Collections.singletonList(KeyType.GLOBAL));
@@ -555,7 +555,7 @@ public final class Keys {
* Override longitude sign / hemisphere. Useful in cases where value is incorrect because of device bug. Value can
* be E for East or W for West.
*/
- public static final ConfigKey<Boolean> LOCATION_LONGITUDE_HEMISPHERE = new ConfigKey<>(
+ public static final ConfigKey<String> LOCATION_LONGITUDE_HEMISPHERE = new ConfigKey<>(
"location.longitudeHemisphere",
Collections.singletonList(KeyType.GLOBAL));