aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/processing
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/processing')
-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());