Revert "Prevent closing already closed statements"

This reverts commit b9fc6a0b2b.
This commit is contained in:
snowleo 2011-08-08 18:14:20 +02:00
parent a8f6014a42
commit 33d37a2f96

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);