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: Better ivar name.
Date Tue, 12 Jun 2018 00:00:39 GMT
Repository: commons-dbcp
Updated Branches:
  refs/heads/master 00354024c -> 75199a4d3


Better ivar name.

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

Branch: refs/heads/master
Commit: 75199a4d3244bf3f97979024ac15a55728cb0860
Parents: 0035402
Author: Gary Gregory <garydgregory@gmail.com>
Authored: Mon Jun 11 18:00:33 2018 -0600
Committer: Gary Gregory <garydgregory@gmail.com>
Committed: Mon Jun 11 18:00:33 2018 -0600

----------------------------------------------------------------------
 .../org/apache/commons/dbcp2/DriverConnectionFactory.java    | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-dbcp/blob/75199a4d/src/main/java/org/apache/commons/dbcp2/DriverConnectionFactory.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/dbcp2/DriverConnectionFactory.java b/src/main/java/org/apache/commons/dbcp2/DriverConnectionFactory.java
index 4c2686c..c7d5716 100644
--- a/src/main/java/org/apache/commons/dbcp2/DriverConnectionFactory.java
+++ b/src/main/java/org/apache/commons/dbcp2/DriverConnectionFactory.java
@@ -28,7 +28,7 @@ import java.util.Properties;
  */
 public class DriverConnectionFactory implements ConnectionFactory {
 
-    private final String connectionUri;
+    private final String connectionString;
     private final Driver driver;
     private final Properties properties;
 
@@ -44,18 +44,18 @@ public class DriverConnectionFactory implements ConnectionFactory {
      */
     public DriverConnectionFactory(final Driver driver, final String connectString, final
Properties properties) {
         this.driver = driver;
-        this.connectionUri = connectString;
+        this.connectionString = connectString;
         this.properties = properties;
     }
 
     @Override
     public Connection createConnection() throws SQLException {
-        return driver.connect(connectionUri, properties);
+        return driver.connect(connectionString, properties);
     }
 
     @Override
     public String toString() {
-        return this.getClass().getName() + " [" + String.valueOf(driver) + ";" + String.valueOf(connectionUri)
+ ";"
+        return this.getClass().getName() + " [" + String.valueOf(driver) + ";" + String.valueOf(connectionString)
+ ";"
                 + String.valueOf(properties) + "]";
     }
 }


Mime
View raw message