From 1b499620810fe6d376a4a72c5ab66b6be2f4af5c Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Tue, 14 Mar 2017 14:21:18 +0500 Subject: Combine some exceptions to ReflectiveOperationException --- src/org/traccar/database/PermissionsManager.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/org/traccar/database') 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()) { -- cgit v1.2.3