jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject svn commit: r1797688 - /jmeter/trunk/src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/config/DataSourceElement.java
Date Mon, 05 Jun 2017 19:35:16 GMT
Author: fschumacher
Date: Mon Jun  5 19:35:16 2017
New Revision: 1797688

URL: http://svn.apache.org/viewvc?rev=1797688&view=rev
Log:
Inline local variable to make following refactoring easier.

Modified:
    jmeter/trunk/src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/config/DataSourceElement.java

Modified: jmeter/trunk/src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/config/DataSourceElement.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/config/DataSourceElement.java?rev=1797688&r1=1797687&r2=1797688&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/config/DataSourceElement.java
(original)
+++ jmeter/trunk/src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/config/DataSourceElement.java
Mon Jun  5 19:35:16 2017
@@ -307,16 +307,14 @@ public class DataSourceElement extends A
          */
         public String getConnectionInfo() {
             BasicDataSource dsc;
-            boolean shared = false;
             if (sharedDSC != null){ // i.e. shared pool
                 dsc = sharedDSC;
-                shared = true;
             } else {
                 Map<String, BasicDataSource> poolMap = perThreadPoolMap.get();
                 dsc = poolMap.get(getDataSourceName());
             }
             StringBuilder builder = new StringBuilder(100);
-            builder.append("shared:").append(shared)
+            builder.append("shared:").append(sharedDSC != null)
                 .append(", driver:").append(dsc.getDriverClassName())
                 .append(", url:").append(dsc.getUrl())
                 .append(", user:").append(dsc.getUsername());



Mime
View raw message