jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1807077 - /jmeter/trunk/src/functions/org/apache/jmeter/functions/RandomDate.java
Date Sat, 02 Sep 2017 18:58:40 GMT
Author: pmouawad
Date: Sat Sep  2 18:58:40 2017
New Revision: 1807077

URL: http://svn.apache.org/viewvc?rev=1807077&view=rev
Log:
Fix code smell, remove null assignment

Modified:
    jmeter/trunk/src/functions/org/apache/jmeter/functions/RandomDate.java

Modified: jmeter/trunk/src/functions/org/apache/jmeter/functions/RandomDate.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/functions/org/apache/jmeter/functions/RandomDate.java?rev=1807077&r1=1807076&r2=1807077&view=diff
==============================================================================
--- jmeter/trunk/src/functions/org/apache/jmeter/functions/RandomDate.java (original)
+++ jmeter/trunk/src/functions/org/apache/jmeter/functions/RandomDate.java Sat Sep  2 18:58:40
2017
@@ -140,7 +140,7 @@ public class RandomDate extends Abstract
         long localStartDate = 0;
         long localEndDate = 0;
 
-        DateTimeFormatter formatter = null;
+        DateTimeFormatter formatter;
         format = ((CompoundVariable) values[0]).execute().trim();
         String localeAsString = ((CompoundVariable) values[3]).execute().trim();
         if (!localeAsString.trim().isEmpty()) {



Mime
View raw message