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 "";