Avoid unnecessary initialization of local variable.

pull/42/head
Brett Wooldridge 11 years ago
parent d8126eca81
commit c2405e0423

@ -281,19 +281,20 @@ public abstract class ConnectionProxy implements IHikariConnectionProxy
try
{
final int size = openStatements.size();
for (int i = 0; i < size; i++)
if (size > 0)
{
try
{
openStatements.get(i).close();
}
catch (SQLException e)
for (int i = 0; i < size; i++)
{
checkException(e);
try
{
openStatements.get(i).close();
}
catch (SQLException e)
{
checkException(e);
}
}
}
if (size > 0)
{
openStatements.clear();
}

Loading…
Cancel
Save