aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/events
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-07-09 16:12:32 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2016-07-09 16:12:32 +1200
commit3ba4c59d26aee7cc336e9b26c792e2ddcc56a491 (patch)
tree9a5cf261f339cf36419c0047a134cf293733a22d /src/org/traccar/events
parentb99246eb160e698039cbe929353477a9b2f672dd (diff)
downloadtrackermap-server-3ba4c59d26aee7cc336e9b26c792e2ddcc56a491.tar.gz
trackermap-server-3ba4c59d26aee7cc336e9b26c792e2ddcc56a491.tar.bz2
trackermap-server-3ba4c59d26aee7cc336e9b26c792e2ddcc56a491.zip
Use diamond operator
Diffstat (limited to 'src/org/traccar/events')
-rw-r--r--src/org/traccar/events/GeofenceEventHandler.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/events/GeofenceEventHandler.java b/src/org/traccar/events/GeofenceEventHandler.java
index e9a4a640f..a3d8aa375 100644
--- a/src/org/traccar/events/GeofenceEventHandler.java
+++ b/src/org/traccar/events/GeofenceEventHandler.java
@@ -52,11 +52,11 @@ public class GeofenceEventHandler extends BaseEventHandler {
}
List<Long> currentGeofences = geofenceManager.getCurrentDeviceGeofences(position);
- List<Long> oldGeofences = new ArrayList<Long>();
+ List<Long> oldGeofences = new ArrayList<>();
if (device.getGeofenceIds() != null) {
oldGeofences.addAll(device.getGeofenceIds());
}
- List<Long> newGeofences = new ArrayList<Long>(currentGeofences);
+ List<Long> newGeofences = new ArrayList<>(currentGeofences);
newGeofences.removeAll(oldGeofences);
oldGeofences.removeAll(currentGeofences);