From 64c5916acf62fc97a66726abdbdf05d8434c03db Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 28 Dec 2020 14:42:28 -0800 Subject: Fix wrong types --- src/main/java/org/traccar/config/Config.java | 2 +- src/main/java/org/traccar/config/Keys.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/main/java/org/traccar') 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 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 SERVER_STATISTICS = new ConfigKey<>( + public static final ConfigKey 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 LOCATION_LATITUDE_HEMISPHERE = new ConfigKey<>( + public static final ConfigKey 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 LOCATION_LONGITUDE_HEMISPHERE = new ConfigKey<>( + public static final ConfigKey LOCATION_LONGITUDE_HEMISPHERE = new ConfigKey<>( "location.longitudeHemisphere", Collections.singletonList(KeyType.GLOBAL)); -- cgit v1.2.3