1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-13 10:04:51 +02:00

Revert "Prevent closing already closed statements"

This reverts commit 9c2af4adbf.
This commit is contained in:
snowleo
2011-08-08 18:14:20 +02:00
parent 1d89353cf1
commit ec5e2afe51

View File

@@ -75,12 +75,9 @@ public abstract class ProtectedBlockJDBC implements IProtectedBlock
if (ps != null)
{
try
{
if (!ps.isClosed())
{
ps.close();
}
}
catch (SQLException ex)
{
LOGGER.log(Level.SEVERE, null, ex);
@@ -119,12 +116,9 @@ public abstract class ProtectedBlockJDBC implements IProtectedBlock
if (ps != null)
{
try
{
if (!ps.isClosed())
{
ps.close();
}
}
catch (SQLException ex)
{
LOGGER.log(Level.SEVERE, null, ex);
@@ -200,12 +194,9 @@ public abstract class ProtectedBlockJDBC implements IProtectedBlock
if (ps != null)
{
try
{
if (!ps.isClosed())
{
ps.close();
}
}
catch (SQLException ex)
{
LOGGER.log(Level.SEVERE, null, ex);
@@ -249,12 +240,9 @@ public abstract class ProtectedBlockJDBC implements IProtectedBlock
if (ps != null)
{
try
{
if (!ps.isClosed())
{
ps.close();
}
}
catch (SQLException ex)
{
LOGGER.log(Level.SEVERE, null, ex);
@@ -307,12 +295,9 @@ public abstract class ProtectedBlockJDBC implements IProtectedBlock
if (ps != null)
{
try
{
if (!ps.isClosed())
{
ps.close();
}
}
catch (SQLException ex)
{
LOGGER.log(Level.SEVERE, null, ex);
@@ -370,12 +355,9 @@ public abstract class ProtectedBlockJDBC implements IProtectedBlock
if (ps != null)
{
try
{
if (!ps.isClosed())
{
ps.close();
}
}
catch (SQLException ex)
{
LOGGER.log(Level.SEVERE, null, ex);
@@ -415,12 +397,9 @@ public abstract class ProtectedBlockJDBC implements IProtectedBlock
if (ps != null)
{
try
{
if (!ps.isClosed())
{
ps.close();
}
}
catch (SQLException ex)
{
LOGGER.log(Level.SEVERE, null, ex);