aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-10-22 05:44:36 +0400
committerAnton Tananaev <anton.tananaev@gmail.com>2018-10-22 05:44:36 +0400
commit7abf8b8605f00c1a477dbd6eeb58bf5e678ff66b (patch)
tree46d98ad3219637f2854b91ff8414b1c256c7098e /src/org
parent3eb9d26150bd4b84e4bf7c640c6d314a64577839 (diff)
downloadtraccar-server-7abf8b8605f00c1a477dbd6eeb58bf5e678ff66b.tar.gz
traccar-server-7abf8b8605f00c1a477dbd6eeb58bf5e678ff66b.tar.bz2
traccar-server-7abf8b8605f00c1a477dbd6eeb58bf5e678ff66b.zip
Remove unnecessary code
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/database/PermissionsManager.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/org/traccar/database/PermissionsManager.java b/src/org/traccar/database/PermissionsManager.java
index d9ab93557..ced0df1c0 100644
--- a/src/org/traccar/database/PermissionsManager.java
+++ b/src/org/traccar/database/PermissionsManager.java
@@ -66,21 +66,21 @@ public class PermissionsManager {
public Set<Long> getGroupPermissions(long userId) {
if (!groupPermissions.containsKey(userId)) {
- groupPermissions.put(userId, new HashSet<Long>());
+ groupPermissions.put(userId, new HashSet<>());
}
return groupPermissions.get(userId);
}
public Set<Long> getDevicePermissions(long userId) {
if (!devicePermissions.containsKey(userId)) {
- devicePermissions.put(userId, new HashSet<Long>());
+ devicePermissions.put(userId, new HashSet<>());
}
return devicePermissions.get(userId);
}
private Set<Long> getAllDeviceUsers(long deviceId) {
if (!deviceUsers.containsKey(deviceId)) {
- deviceUsers.put(deviceId, new HashSet<Long>());
+ deviceUsers.put(deviceId, new HashSet<>());
}
return deviceUsers.get(deviceId);
}
@@ -102,7 +102,7 @@ public class PermissionsManager {
public Set<Long> getGroupDevices(long groupId) {
if (!groupDevices.containsKey(groupId)) {
- groupDevices.put(groupId, new HashSet<Long>());
+ groupDevices.put(groupId, new HashSet<>());
}
return groupDevices.get(groupId);
}
@@ -193,7 +193,7 @@ public class PermissionsManager {
}
}
- public void checkDeviceLimit(long userId) throws SecurityException, SQLException {
+ public void checkDeviceLimit(long userId) throws SecurityException {
int deviceLimit = getUser(userId).getDeviceLimit();
if (deviceLimit != -1) {
int deviceCount = 0;