summaryrefslogtreecommitdiffstats
path: root/EssentialsProtect/src/com/earth2me/essentials
diff options
context:
space:
mode:
authorsnowleo <schneeleo@gmail.com>2011-08-08 18:14:20 +0200
committersnowleo <schneeleo@gmail.com>2011-08-08 18:14:20 +0200
commitec5e2afe51ee95f42bb2bae5b3f953d185a79e78 (patch)
tree57d44ac9f67163501c2827e31da50088e35f92d6 /EssentialsProtect/src/com/earth2me/essentials
parent1d89353cf104285efaa4556892f66d191a71a917 (diff)
downloadEssentials-ec5e2afe51ee95f42bb2bae5b3f953d185a79e78.tar
Essentials-ec5e2afe51ee95f42bb2bae5b3f953d185a79e78.tar.gz
Essentials-ec5e2afe51ee95f42bb2bae5b3f953d185a79e78.tar.lz
Essentials-ec5e2afe51ee95f42bb2bae5b3f953d185a79e78.tar.xz
Essentials-ec5e2afe51ee95f42bb2bae5b3f953d185a79e78.zip
Revert "Prevent closing already closed statements"
This reverts commit 9c2af4adbfa171ddc55bb60a497f37e8f96aab03.
Diffstat (limited to 'EssentialsProtect/src/com/earth2me/essentials')
-rw-r--r--EssentialsProtect/src/com/earth2me/essentials/protect/data/ProtectedBlockJDBC.java35
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)
{