From 2bf57a222e2c173df13e4816efb62dfe0f371bfa Mon Sep 17 00:00:00 2001 From: Gavriel Fleischer Date: Tue, 8 Jan 2019 19:47:52 +0200 Subject: reverted getInteger --- src/org/traccar/model/ExtendedModel.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/org') 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(); -- cgit v1.2.3