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 {
ResultSet rs = prepareStatement.executeQuery(); ResultSet rs = prepareStatement.executeQuery();
while (rs.next()) { while (rs.next()) {
EffectsBase toAdd = new EffectsBase(rs); EffectsBase effectBase = new EffectsBase(rs);
effectList.add(toAdd); effectList.add(effectBase);
} }
} catch (SQLException e) { } catch (SQLException e) {
Logger.error(e.toString()); Logger.error(e.toString());

Loading…
Cancel
Save