jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject svn commit: r1721404 - /jmeter/trunk/src/core/org/apache/jmeter/report/processor/SampleWriterConsumer.java
Date Tue, 22 Dec 2015 13:53:24 GMT
Author: fschumacher
Date: Tue Dec 22 13:53:24 2015
New Revision: 1721404

URL: http://svn.apache.org/viewvc?rev=1721404&view=rev
Log:
Replace ArgumentNullException with NPE by using Validate.notNull instead of null check with
throw.

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

Modified: jmeter/trunk/src/core/org/apache/jmeter/report/processor/SampleWriterConsumer.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/report/processor/SampleWriterConsumer.java?rev=1721404&r1=1721403&r2=1721404&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/report/processor/SampleWriterConsumer.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/report/processor/SampleWriterConsumer.java Tue
Dec 22 13:53:24 2015
@@ -19,7 +19,7 @@ package org.apache.jmeter.report.process
 
 import java.io.File;
 
-import org.apache.jmeter.report.core.ArgumentNullException;
+import org.apache.commons.lang3.Validate;
 import org.apache.jmeter.report.core.CsvSampleWriter;
 import org.apache.jmeter.report.core.Sample;
 import org.slf4j.Logger;
@@ -48,10 +48,7 @@ public class SampleWriterConsumer extend
     }
 
     public void setOutputFile(File outputFile) {
-        if (outputFile == null) {
-        throw new ArgumentNullException("outputFile");
-        }
-
+        Validate.notNull(outputFile, "outputFile must not be null");
         this.outputFile = outputFile;
     }
 



Mime
View raw message