jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject svn commit: r1795012 - /jmeter/trunk/src/functions/org/apache/jmeter/functions/TimeShift.java
Date Fri, 12 May 2017 19:17:34 GMT
Author: fschumacher
Date: Fri May 12 19:17:34 2017
New Revision: 1795012

URL: http://svn.apache.org/viewvc?rev=1795012&view=rev
Log:
Remove cast. It is not needed here.

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

Modified: jmeter/trunk/src/functions/org/apache/jmeter/functions/TimeShift.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/functions/org/apache/jmeter/functions/TimeShift.java?rev=1795012&r1=1795011&r2=1795012&view=diff
==============================================================================
--- jmeter/trunk/src/functions/org/apache/jmeter/functions/TimeShift.java (original)
+++ jmeter/trunk/src/functions/org/apache/jmeter/functions/TimeShift.java Fri May 12 19:17:34
2017
@@ -91,7 +91,7 @@ public class TimeShift extends AbstractF
         DateTimeFormatter formatter = null;
         if (!StringUtils.isEmpty(format)) {
             try {
-                formatter = (DateTimeFormatter) dateTimeFormatterCache.get(format, key ->
createFormatter((String)key));
+                formatter = dateTimeFormatterCache.get(format, key -> createFormatter((String)key));
             } catch (IllegalArgumentException ex) {
                 log.error("Format date pattern '{}' is invalid (see https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html)",
format, ex); // $NON-NLS-1$
                 return "";



Mime
View raw message