aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-07-26 15:26:27 +0500
committerAbyss777 <abyss@fox5.ru>2016-07-26 15:26:27 +0500
commit387b774ae1b87db6b722e50576eb0b814501b101 (patch)
tree12fdd0abd7f4e6b135276eb57ef00d7fdda76a81 /src
parent8ce7ef517c2913483eee7a09fd19e98cfd37b6e8 (diff)
downloadtraccar-server-387b774ae1b87db6b722e50576eb0b814501b101.tar.gz
traccar-server-387b774ae1b87db6b722e50576eb0b814501b101.tar.bz2
traccar-server-387b774ae1b87db6b722e50576eb0b814501b101.zip
Use primitive
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/events/OverspeedEventHandler.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/events/OverspeedEventHandler.java b/src/org/traccar/events/OverspeedEventHandler.java
index b2b1aeb5f..e488b9df2 100644
--- a/src/org/traccar/events/OverspeedEventHandler.java
+++ b/src/org/traccar/events/OverspeedEventHandler.java
@@ -53,7 +53,7 @@ public class OverspeedEventHandler extends BaseEventHandler {
Collection<Event> events = new ArrayList<>();
double speed = position.getSpeed();
- Double speedLimit = new Double(0);
+ double speedLimit = 0;
if (device.getAttributes().containsKey(ATTRIBUTE_SPEED_LIMIT)) {
speedLimit = Double.parseDouble((String) device.getAttributes().get(ATTRIBUTE_SPEED_LIMIT));