commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject commons-dbcp git commit: Always use blocks.
Date Fri, 27 Oct 2017 20:35:40 GMT
Repository: commons-dbcp
Updated Branches:
  refs/heads/master 845c820c0 -> 12d010b54


Always use blocks.

Project: http://git-wip-us.apache.org/repos/asf/commons-dbcp/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-dbcp/commit/12d010b5
Tree: http://git-wip-us.apache.org/repos/asf/commons-dbcp/tree/12d010b5
Diff: http://git-wip-us.apache.org/repos/asf/commons-dbcp/diff/12d010b5

Branch: refs/heads/master
Commit: 12d010b54e8c58fd6ce323b00b6259d43d34db33
Parents: 845c820
Author: Gary Gregory <ggregory@apache.org>
Authored: Fri Oct 27 14:35:37 2017 -0600
Committer: Gary Gregory <ggregory@apache.org>
Committed: Fri Oct 27 14:35:37 2017 -0600

----------------------------------------------------------------------
 src/main/java/org/apache/commons/dbcp2/PStmtKey.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-dbcp/blob/12d010b5/src/main/java/org/apache/commons/dbcp2/PStmtKey.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/dbcp2/PStmtKey.java b/src/main/java/org/apache/commons/dbcp2/PStmtKey.java
index de6d95b..4ceb7d1 100644
--- a/src/main/java/org/apache/commons/dbcp2/PStmtKey.java
+++ b/src/main/java/org/apache/commons/dbcp2/PStmtKey.java
@@ -330,7 +330,9 @@ public class PStmtKey {
     }
 
     public Statement createStatement(final Connection connection) throws SQLException {
-        if (builder == null) throw new IllegalStateException("Prepared statement key is invalid.");
+        if (builder == null) {
+            throw new IllegalStateException("Prepared statement key is invalid.");
+        }
         return builder.createStatement(connection);
     }
 


Mime
View raw message