Browse Source

Method refactored to use try-with-resources

master
MagicBot 2 years ago
parent
commit
27ac58518c
  1. 4
      src/engine/db/handlers/dbEffectsBaseHandler.java

4
src/engine/db/handlers/dbEffectsBaseHandler.java

@ -35,8 +35,8 @@ public class dbEffectsBaseHandler extends dbHandlerBase { @@ -35,8 +35,8 @@ public class dbEffectsBaseHandler extends dbHandlerBase {
ResultSet rs = prepareStatement.executeQuery();
while (rs.next()) {
EffectsBase toAdd = new EffectsBase(rs);
effectList.add(toAdd);
EffectsBase effectBase = new EffectsBase(rs);
effectList.add(effectBase);
}
} catch (SQLException e) {
Logger.error(e.toString());

Loading…
Cancel
Save