You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by si...@apache.org on 2011/09/17 00:19:05 UTC
svn commit: r1171828 -
/commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/QueryRunner.java
Author: simonetripodi
Date: Fri Sep 16 22:19:05 2011
New Revision: 1171828
URL: http://svn.apache.org/viewvc?rev=1171828&view=rev
Log:
fixed checkstyle violation: 'if' construct must use '{}'s.
Modified:
commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/QueryRunner.java
Modified: commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/QueryRunner.java
URL: http://svn.apache.org/viewvc/commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/QueryRunner.java?rev=1171828&r1=1171827&r2=1171828&view=diff
==============================================================================
--- commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/QueryRunner.java (original)
+++ commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/QueryRunner.java Fri Sep 16 22:19:05 2011
@@ -352,8 +352,9 @@ public class QueryRunner extends Abstrac
close(rs);
} finally {
close(stmt);
- if (closeConn)
+ if (closeConn) {
close(conn);
+ }
}
}
@@ -488,8 +489,9 @@ public class QueryRunner extends Abstrac
} finally {
close(stmt);
- if (closeConn)
+ if (closeConn) {
close(conn);
+ }
}
return rows;