From ec5e2afe51ee95f42bb2bae5b3f953d185a79e78 Mon Sep 17 00:00:00 2001 From: snowleo Date: Mon, 8 Aug 2011 18:14:20 +0200 Subject: Revert "Prevent closing already closed statements" This reverts commit 9c2af4adbfa171ddc55bb60a497f37e8f96aab03. --- .../protect/data/ProtectedBlockJDBC.java | 35 +++++----------------- 1 file changed, 7 insertions(+), 28 deletions(-) (limited to 'EssentialsProtect') diff --git a/EssentialsProtect/src/com/earth2me/essentials/protect/data/ProtectedBlockJDBC.java b/EssentialsProtect/src/com/earth2me/essentials/protect/data/ProtectedBlockJDBC.java index afbcedb72..e24a71b80 100644 --- a/EssentialsProtect/src/com/earth2me/essentials/protect/data/ProtectedBlockJDBC.java +++ b/EssentialsProtect/src/com/earth2me/essentials/protect/data/ProtectedBlockJDBC.java @@ -76,10 +76,7 @@ public abstract class ProtectedBlockJDBC implements IProtectedBlock { try { - if (!ps.isClosed()) - { - ps.close(); - } + ps.close(); } catch (SQLException ex) { @@ -120,10 +117,7 @@ public abstract class ProtectedBlockJDBC implements IProtectedBlock { try { - if (!ps.isClosed()) - { - ps.close(); - } + ps.close(); } catch (SQLException ex) { @@ -201,10 +195,7 @@ public abstract class ProtectedBlockJDBC implements IProtectedBlock { try { - if (!ps.isClosed()) - { - ps.close(); - } + ps.close(); } catch (SQLException ex) { @@ -250,10 +241,7 @@ public abstract class ProtectedBlockJDBC implements IProtectedBlock { try { - if (!ps.isClosed()) - { - ps.close(); - } + ps.close(); } catch (SQLException ex) { @@ -308,10 +296,7 @@ public abstract class ProtectedBlockJDBC implements IProtectedBlock { try { - if (!ps.isClosed()) - { - ps.close(); - } + ps.close(); } catch (SQLException ex) { @@ -371,10 +356,7 @@ public abstract class ProtectedBlockJDBC implements IProtectedBlock { try { - if (!ps.isClosed()) - { - ps.close(); - } + ps.close(); } catch (SQLException ex) { @@ -416,10 +398,7 @@ public abstract class ProtectedBlockJDBC implements IProtectedBlock { try { - if (!ps.isClosed()) - { - ps.close(); - } + ps.close(); } catch (SQLException ex) { -- cgit v1.2.3