diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-07-12 09:55:13 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-07-12 09:55:13 +1200 |
commit | 781f4b0a01dd8b16892b0bb907d43f9e0ca6f2ba (patch) | |
tree | b3c62c7d26b3534e139aa26fa6315428473b160b /src/org/traccar/events/GeofenceEventHandler.java | |
parent | a4a127b5255cd62aae25419dbf289a926c5adbfd (diff) | |
download | trackermap-server-781f4b0a01dd8b16892b0bb907d43f9e0ca6f2ba.tar.gz trackermap-server-781f4b0a01dd8b16892b0bb907d43f9e0ca6f2ba.tar.bz2 trackermap-server-781f4b0a01dd8b16892b0bb907d43f9e0ca6f2ba.zip |
Use long primitive type
Diffstat (limited to 'src/org/traccar/events/GeofenceEventHandler.java')
-rw-r--r-- | src/org/traccar/events/GeofenceEventHandler.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/events/GeofenceEventHandler.java b/src/org/traccar/events/GeofenceEventHandler.java index a3d8aa375..9a546182d 100644 --- a/src/org/traccar/events/GeofenceEventHandler.java +++ b/src/org/traccar/events/GeofenceEventHandler.java @@ -66,7 +66,7 @@ public class GeofenceEventHandler extends BaseEventHandler { try { if (dataManager.getLastEvents(position.getDeviceId(), Event.TYPE_GEOFENCE_ENTER, suppressRepeated).isEmpty()) { - for (Long geofenceId : newGeofences) { + for (long geofenceId : newGeofences) { Event event = new Event(Event.TYPE_GEOFENCE_ENTER, position.getDeviceId(), position.getId()); event.setGeofenceId(geofenceId); events.add(event); @@ -78,7 +78,7 @@ public class GeofenceEventHandler extends BaseEventHandler { try { if (dataManager.getLastEvents(position.getDeviceId(), Event.TYPE_GEOFENCE_EXIT, suppressRepeated).isEmpty()) { - for (Long geofenceId : oldGeofences) { + for (long geofenceId : oldGeofences) { Event event = new Event(Event.TYPE_GEOFENCE_EXIT, position.getDeviceId(), position.getId()); event.setGeofenceId(geofenceId); events.add(event); |