diff options
author | Gavriel Fleischer <flocsy@gmail.com> | 2019-01-08 19:47:52 +0200 |
---|---|---|
committer | Gavriel Fleischer <flocsy@gmail.com> | 2019-01-08 19:47:52 +0200 |
commit | 2bf57a222e2c173df13e4816efb62dfe0f371bfa (patch) | |
tree | 8280cc24940bfd4ef3b0f12d9ca464d6a1e31735 | |
parent | 4270b46343d828081436f9a467230d91aa05e4ec (diff) | |
download | trackermap-server-2bf57a222e2c173df13e4816efb62dfe0f371bfa.tar.gz trackermap-server-2bf57a222e2c173df13e4816efb62dfe0f371bfa.tar.bz2 trackermap-server-2bf57a222e2c173df13e4816efb62dfe0f371bfa.zip |
reverted getInteger
-rw-r--r-- | src/org/traccar/model/ExtendedModel.java | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/org/traccar/model/ExtendedModel.java b/src/org/traccar/model/ExtendedModel.java index 8271e41cc..8353d0e66 100644 --- a/src/org/traccar/model/ExtendedModel.java +++ b/src/org/traccar/model/ExtendedModel.java @@ -108,18 +108,14 @@ public class ExtendedModel extends BaseModel { } } - public Integer getInteger(String key, Integer defaultValue) { + public int getInteger(String key) { if (attributes.containsKey(key)) { return ((Number) attributes.get(key)).intValue(); } else { - return defaultValue; + return 0; } } - public int getInteger(String key) { - return getInteger(key, 0); - } - public long getLong(String key) { if (attributes.containsKey(key)) { return ((Number) attributes.get(key)).longValue(); |