commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1171828 - /commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/QueryRunner.java
Date Fri, 16 Sep 2011 22:19:05 GMT
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;



Mime
View raw message