From e0415c6d64835ec5c4b3f353029225b9202ad1ab Mon Sep 17 00:00:00 2001 From: AlexCatze Date: Sat, 19 Nov 2022 12:49:59 +0200 Subject: [PATCH] [REFACTOR] Remover useless catches --- .../launchserver/auth/core/AbstractSQLCoreProvider.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/AbstractSQLCoreProvider.java b/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/AbstractSQLCoreProvider.java index aea7aa86..09191704 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/AbstractSQLCoreProvider.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/AbstractSQLCoreProvider.java @@ -247,8 +247,6 @@ private SQLUser queryUser(String sql, String value) throws SQLException { try (ResultSet set = s.executeQuery()) { return constructUser(set); } - } catch (SQLException e) { - throw new SQLException(e); } } @@ -262,8 +260,6 @@ private List queryPermissions(String sql, String value) throws SQLExcept while (set.next()) perms.add(set.getString(permissionsPermissionColumn)); return perms; - } catch (SQLException e) { - throw new SQLException(e); } } @@ -277,8 +273,6 @@ private List queryRolesNames(String sql, String value) throws SQLExcepti while (set.next()) perms.add(set.getString(rolesNameColumn)); return perms; - } catch (SQLException e) { - throw new SQLException(e); } }