diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-07-09 16:12:32 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-07-09 16:12:32 +1200 |
commit | 3ba4c59d26aee7cc336e9b26c792e2ddcc56a491 (patch) | |
tree | 9a5cf261f339cf36419c0047a134cf293733a22d /src/org/traccar | |
parent | b99246eb160e698039cbe929353477a9b2f672dd (diff) | |
download | trackermap-server-3ba4c59d26aee7cc336e9b26c792e2ddcc56a491.tar.gz trackermap-server-3ba4c59d26aee7cc336e9b26c792e2ddcc56a491.tar.bz2 trackermap-server-3ba4c59d26aee7cc336e9b26c792e2ddcc56a491.zip |
Use diamond operator
Diffstat (limited to 'src/org/traccar')
-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 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); |