aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-03-14 14:21:18 +0500
committerAbyss777 <abyss@fox5.ru>2017-03-14 14:21:18 +0500
commit1b499620810fe6d376a4a72c5ab66b6be2f4af5c (patch)
tree772f03e096b480f07351771806b82cf4c103a2a0 /src/org
parent0e2e23f0d1bfef546992c399a7f62aaa4d6f7ad6 (diff)
downloadtrackermap-server-1b499620810fe6d376a4a72c5ab66b6be2f4af5c.tar.gz
trackermap-server-1b499620810fe6d376a4a72c5ab66b6be2f4af5c.tar.bz2
trackermap-server-1b499620810fe6d376a4a72c5ab66b6be2f4af5c.zip
Combine some exceptions to ReflectiveOperationException
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/database/PermissionsManager.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/org/traccar/database/PermissionsManager.java b/src/org/traccar/database/PermissionsManager.java
index 5814a1203..e4bd6f5db 100644
--- a/src/org/traccar/database/PermissionsManager.java
+++ b/src/org/traccar/database/PermissionsManager.java
@@ -25,7 +25,6 @@ import org.traccar.model.Server;
import org.traccar.model.User;
import org.traccar.model.UserPermission;
-import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.sql.SQLException;
import java.util.ArrayList;
@@ -413,8 +412,7 @@ public class PermissionsManager {
if (method != null) {
serverPreference = method.invoke(server, (Object[]) null);
}
- } catch (NoSuchMethodException | SecurityException | IllegalAccessException
- | IllegalArgumentException | InvocationTargetException exception) {
+ } catch (ReflectiveOperationException | SecurityException | IllegalArgumentException exception) {
return defaultValue;
}
if (server.getForceSettings()) {