jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject svn commit: r1721355 - /jmeter/trunk/src/core/org/apache/jmeter/report/core/CsvSampleReader.java
Date Tue, 22 Dec 2015 11:19:21 GMT
Author: fschumacher
Date: Tue Dec 22 11:19:21 2015
New Revision: 1721355

URL: http://svn.apache.org/viewvc?rev=1721355&view=rev
Log:
Rename variable as it hides the instance variable metadata.

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

Modified: jmeter/trunk/src/core/org/apache/jmeter/report/core/CsvSampleReader.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/report/core/CsvSampleReader.java?rev=1721355&r1=1721354&r2=1721355&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/report/core/CsvSampleReader.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/report/core/CsvSampleReader.java Tue Dec 22 11:19:21
2015
@@ -116,7 +116,7 @@ public class CsvSampleReader implements
 
     private SampleMetadata readMetadata(char separator, boolean useSaveSampleCfg) {
         try {
-            SampleMetadata metadata;
+            SampleMetadata result;
             // Read first line
             String line = reader.readLine();
             if(line == null) {
@@ -128,14 +128,14 @@ public class CsvSampleReader implements
                     && CSVSaveService.getSampleSaveConfiguration(line,
                             file.getAbsolutePath()) == null) {
                 // Build metadata from default save config
-                metadata = new SampleMetadata(
+                result = new SampleMetadata(
                         SampleSaveConfiguration.staticConfig());
 
             } else {
                 // Build metadata from headers
-                metadata = new SampleMetaDataParser(separator).parse(line);
+                result = new SampleMetaDataParser(separator).parse(line);
             }
-            return metadata;
+            return result;
         } catch (Exception e) {
             throw new SampleException("Could not read metadata !", e);
         }



Mime
View raw message