diff options
Diffstat (limited to 'src/org/traccar/model')
-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(); |