aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/processing/ComputedAttributesHandler.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-01-25 20:02:22 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2018-01-26 08:41:45 +1300
commit8535983fea8c09046c53f2ebf388bbf3fae594ce (patch)
treea9f60c445ea163450b8886f7988853d86088db10 /src/org/traccar/processing/ComputedAttributesHandler.java
parent1c915fa1360f416ec88f4095664a887ceea2bc15 (diff)
downloadtrackermap-server-8535983fea8c09046c53f2ebf388bbf3fae594ce.tar.gz
trackermap-server-8535983fea8c09046c53f2ebf388bbf3fae594ce.tar.bz2
trackermap-server-8535983fea8c09046c53f2ebf388bbf3fae594ce.zip
Clean up unnecessary code
Diffstat (limited to 'src/org/traccar/processing/ComputedAttributesHandler.java')
-rw-r--r--src/org/traccar/processing/ComputedAttributesHandler.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/processing/ComputedAttributesHandler.java b/src/org/traccar/processing/ComputedAttributesHandler.java
index 1e702d17f..f0c54d355 100644
--- a/src/org/traccar/processing/ComputedAttributesHandler.java
+++ b/src/org/traccar/processing/ComputedAttributesHandler.java
@@ -102,10 +102,10 @@ public class ComputedAttributesHandler extends BaseDataHandler {
try {
switch (attribute.getType()) {
case "number":
- position.getAttributes().put(attribute.getAttribute(), (Number) result);
+ position.getAttributes().put(attribute.getAttribute(), result);
break;
case "boolean":
- position.getAttributes().put(attribute.getAttribute(), (Boolean) result);
+ position.getAttributes().put(attribute.getAttribute(), result);
break;
default:
position.getAttributes().put(attribute.getAttribute(), result.toString());