mirror of https://github.com/apache/jmeter.git
Remove cast. It is not needed here.
git-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1795012 13f79535-47bb-0310-9956-ffa450edef68
Former-commit-id: c0647d95a5
This commit is contained in:
parent
316a3add98
commit
c5460c60e3
|
|
@ -91,7 +91,7 @@ public class TimeShift extends AbstractFunction {
|
|||
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 "";
|
||||
|
|
|
|||
Loading…
Reference in New Issue