Repository: commons-dbcp
Updated Branches:
  refs/heads/master 4ec59528d -> de8025310


Line length 120.

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

Branch: refs/heads/master
Commit: de80253102670072f7a4f7e1fbb64b69cd53dd64
Parents: 4ec5952
Author: Gary Gregory <garydgreg...@gmail.com>
Authored: Mon Jun 11 13:22:01 2018 -0600
Committer: Gary Gregory <garydgreg...@gmail.com>
Committed: Mon Jun 11 13:22:01 2018 -0600

----------------------------------------------------------------------
 .../commons/dbcp2/cpdsadapter/PooledConnectionImpl.java     | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-dbcp/blob/de802531/src/main/java/org/apache/commons/dbcp2/cpdsadapter/PooledConnectionImpl.java
----------------------------------------------------------------------
diff --git 
a/src/main/java/org/apache/commons/dbcp2/cpdsadapter/PooledConnectionImpl.java 
b/src/main/java/org/apache/commons/dbcp2/cpdsadapter/PooledConnectionImpl.java
index dc08ca7..31a706f 100644
--- 
a/src/main/java/org/apache/commons/dbcp2/cpdsadapter/PooledConnectionImpl.java
+++ 
b/src/main/java/org/apache/commons/dbcp2/cpdsadapter/PooledConnectionImpl.java
@@ -47,8 +47,7 @@ import org.apache.commons.pool2.impl.DefaultPooledObject;
 class PooledConnectionImpl
         implements PooledConnection, KeyedPooledObjectFactory<PStmtKey, 
DelegatingPreparedStatement> {
 
-    private static final String CLOSED
-            = "Attempted to use PooledConnection after closed() was called.";
+    private static final String CLOSED = "Attempted to use PooledConnection 
after closed() was called.";
 
     /**
      * The JDBC database connection that represents the physical db connection.
@@ -304,13 +303,11 @@ class PooledConnectionImpl
         if (logicalConnection != null && !logicalConnection.isClosed()) {
             // should notify pool of error so the pooled connection can
             // be removed !FIXME!
-            throw new SQLException("PooledConnection was reused, without "
-                    + "its previous Connection being closed.");
+            throw new SQLException("PooledConnection was reused, without its 
previous Connection being closed.");
         }
 
         // the spec requires that this return a new Connection instance.
-        logicalConnection = new ConnectionImpl(
-                this, connection, isAccessToUnderlyingConnectionAllowed());
+        logicalConnection = new ConnectionImpl(this, connection, 
isAccessToUnderlyingConnectionAllowed());
         return logicalConnection;
     }
 

Reply via email to