diff options
Diffstat (limited to 'src/org/traccar/database')
-rw-r--r-- | src/org/traccar/database/DeviceManager.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/org/traccar/database/DeviceManager.java b/src/org/traccar/database/DeviceManager.java index f442317d3..403953d56 100644 --- a/src/org/traccar/database/DeviceManager.java +++ b/src/org/traccar/database/DeviceManager.java @@ -246,7 +246,7 @@ public class DeviceManager implements IdentityManager { if (groupsById == null) { groupsById = new ConcurrentHashMap<>(databaseGroups.size()); } - if(groupsByName == null){ + if (groupsByName == null) { groupsByName = new ConcurrentHashMap<>(databaseGroups.size()); } Set<Long> databaseGroupsIds = new HashSet<>(); @@ -274,7 +274,9 @@ public class DeviceManager implements IdentityManager { return groupsById.get(id); } - public Group getGroupByName(String name) { return groupsByName.get(name); } + public Group getGroupByName(String name) { + return groupsByName.get(name); + } public Collection<Group> getAllGroups() { boolean forceUpdate = groupsById.isEmpty(); |