diff options
author | Abyss777 <abyss@fox5.ru> | 2016-11-22 12:23:35 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-11-22 12:23:35 +0500 |
commit | 94c3b6e92531a0b666141611e6d9cf311e30a108 (patch) | |
tree | 415fc9ad48685234e8559d8aa90ab731bf53603b /src/org/traccar/database/NotificationManager.java | |
parent | 1861e896418a284dbbccfa55db7add1036bb94ba (diff) | |
parent | cd121c173f7c3ef0a815583eccec1232968894b9 (diff) | |
download | trackermap-server-94c3b6e92531a0b666141611e6d9cf311e30a108.tar.gz trackermap-server-94c3b6e92531a0b666141611e6d9cf311e30a108.tar.bz2 trackermap-server-94c3b6e92531a0b666141611e6d9cf311e30a108.zip |
Merge remote-tracking branch 'upstream/master' into maintenanceevents
Diffstat (limited to 'src/org/traccar/database/NotificationManager.java')
-rw-r--r-- | src/org/traccar/database/NotificationManager.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/org/traccar/database/NotificationManager.java b/src/org/traccar/database/NotificationManager.java index 110f699b7..7e79e289f 100644 --- a/src/org/traccar/database/NotificationManager.java +++ b/src/org/traccar/database/NotificationManager.java @@ -74,7 +74,6 @@ public class NotificationManager { } public void updateEvents(Collection<Event> events, Position position) { - for (Event event : events) { updateEvent(event, position); } @@ -176,9 +175,8 @@ public class NotificationManager { } public Set<Notification> getAllNotifications() { - Set<Notification> notifications = new HashSet<>(); - long id = 0; + long id = 1; Field[] fields = Event.class.getDeclaredFields(); for (Field field : fields) { if (Modifier.isStatic(field.getModifiers()) && field.getName().startsWith("TYPE_")) { @@ -194,4 +192,5 @@ public class NotificationManager { } return notifications; } + } |