jmeter-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?rev=1721375&view=rev
Log:
Remove null check and document the need for non null parameter

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

Modified: jmeter/trunk/src/core/org/apache/jmeter/report/core/SampleMetadata.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/report/core/SampleMetadata.java?rev=1721375&r1=1721374&r2=1721375&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/report/core/SampleMetadata.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/report/core/SampleMetadata.java Tue Dec 22 11:58:58
2015
@@ -61,10 +61,14 @@ public class SampleMetadata {
         initialize(separator, Arrays.asList(columns));
     }
 
+    /**
+     * Construct SampleMetaData from {@link SampleSaveConfiguration}.
+     *
+     * @param saveConfig
+     *            config from which metadata gets extracted (must not be
+     *            {@code null})
+     */
     public SampleMetadata(SampleSaveConfiguration saveConfig) {
-        if (saveConfig == null) {
-            throw new ArgumentNullException("saveConfig");
-        }
         ArrayList<String> columns = new ArrayList<>();
         if (saveConfig.saveTimestamp()) {
             columns.add(CSVSaveService.TIME_STAMP);



Mime
View raw message