From 27ac58518cd3cd6115d17885d211ade305ebaa72 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 20 May 2023 10:01:40 -0400 Subject: [PATCH] Method refactored to use try-with-resources --- src/engine/db/handlers/dbEffectsBaseHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/db/handlers/dbEffectsBaseHandler.java b/src/engine/db/handlers/dbEffectsBaseHandler.java index f6a86848..f7cf2bac 100644 --- a/src/engine/db/handlers/dbEffectsBaseHandler.java +++ b/src/engine/db/handlers/dbEffectsBaseHandler.java @@ -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());