aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGavriel Fleischer <flocsy@gmail.com>2019-01-08 19:47:52 +0200
committerGavriel Fleischer <flocsy@gmail.com>2019-01-08 19:47:52 +0200
commit2bf57a222e2c173df13e4816efb62dfe0f371bfa (patch)
tree8280cc24940bfd4ef3b0f12d9ca464d6a1e31735 /src
parent4270b46343d828081436f9a467230d91aa05e4ec (diff)
downloadtraccar-server-2bf57a222e2c173df13e4816efb62dfe0f371bfa.tar.gz
traccar-server-2bf57a222e2c173df13e4816efb62dfe0f371bfa.tar.bz2
traccar-server-2bf57a222e2c173df13e4816efb62dfe0f371bfa.zip
reverted getInteger
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/model/ExtendedModel.java8
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();