jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject svn commit: r1719783 - /jmeter/trunk/src/core/org/apache/jmeter/report/config/ReportGeneratorConfiguration.java
Date Sun, 13 Dec 2015 10:49:53 GMT
Author: fschumacher
Date: Sun Dec 13 10:49:52 2015
New Revision: 1719783

URL: http://svn.apache.org/viewvc?rev=1719783&view=rev
Log:
Use interfaces for variables. Conversion to for-loop.

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/report/config/ReportGeneratorConfiguration.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/report/config/ReportGeneratorConfiguration.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/report/config/ReportGeneratorConfiguration.java?rev=1719783&r1=1719782&r2=1719783&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/report/config/ReportGeneratorConfiguration.java
(original)
+++ jmeter/trunk/src/core/org/apache/jmeter/report/config/ReportGeneratorConfiguration.java
Sun Dec 13 10:49:52 2015
@@ -123,9 +123,9 @@ public class ReportGeneratorConfiguratio
     private File tempDirectory;
     private long apdexSatisfiedThreshold;
     private long apdexToleratedThreshold;
-    private ArrayList<String> filteredSamples = new ArrayList<>();
-    private HashMap<String, ExporterConfiguration> exportConfigurations = new HashMap<>();
-    private HashMap<String, GraphConfiguration> graphConfigurations = new HashMap<>();
+    private List<String> filteredSamples = new ArrayList<>();
+    private Map<String, ExporterConfiguration> exportConfigurations = new HashMap<>();
+    private Map<String, GraphConfiguration> graphConfigurations = new HashMap<>();
 
     /**
      * Gets the overall sample filter.
@@ -147,10 +147,8 @@ public class ReportGeneratorConfiguratio
             this.sampleFilter = sampleFilter;
             filteredSamples.clear();
             if (sampleFilter != null) {
-                String[] items = sampleFilter.split(",");
-                int count = items.length;
-                for (int index = 0; index < count; index++) {
-                    filteredSamples.add(items[index].trim());
+                for (String item: sampleFilter.split(",")) {
+                    filteredSamples.add(item.trim());
                 }
             }
         }



Mime
View raw message