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:
Felix Schumacher 2017-05-12 19:17:34 +00:00
parent 316a3add98
commit c5460c60e3
1 changed files with 1 additions and 1 deletions

View File

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