diff options
author | snowleo <schneeleo@gmail.com> | 2011-08-08 18:14:20 +0200 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-08-08 18:14:20 +0200 |
commit | 33d37a2f9689ee194434a177fdd7ac6e0197ab78 (patch) | |
tree | d005acab533f670ce1bed66a8201b06940128dda /EssentialsProtect/src/com | |
parent | a8f6014a425d9fa1c26d796a1676f6661134f254 (diff) | |
download | Essentials-33d37a2f9689ee194434a177fdd7ac6e0197ab78.tar Essentials-33d37a2f9689ee194434a177fdd7ac6e0197ab78.tar.gz Essentials-33d37a2f9689ee194434a177fdd7ac6e0197ab78.tar.lz Essentials-33d37a2f9689ee194434a177fdd7ac6e0197ab78.tar.xz Essentials-33d37a2f9689ee194434a177fdd7ac6e0197ab78.zip |
Revert "Prevent closing already closed statements"
This reverts commit b9fc6a0b2bd89d7dcd5b97540a03353a096b55bd.
Diffstat (limited to 'EssentialsProtect/src/com')
-rw-r--r-- | EssentialsProtect/src/com/earth2me/essentials/protect/data/ProtectedBlockJDBC.java | 35 |
1 files changed, 7 insertions, 28 deletions
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) { |