Author: adrianc
Date: Thu Apr 26 16:11:44 2012
New Revision: 1330919
URL:
http://svn.apache.org/viewvc?rev=1330919&view=revLog:
Small fixup for my previous commit - remove class cast.
Modified:
ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/Now.java
Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/Now.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/Now.java?rev=1330919&r1=1330918&r2=1330919&view=diff==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/Now.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/Now.java Thu Apr 26 16:11:44 2012
@@ -40,9 +40,8 @@ public final class Now extends MethodOpe
private final FlexibleMapAccessor<Object> fieldFma;
private final String type;
- private final Converter<Long, Object> converter;
+ private final Converter<Long, ? extends Object> converter;
- @SuppressWarnings("unchecked")
public Now(Element element, SimpleMethod simpleMethod) throws MiniLangException {
super(element, simpleMethod);
if (MiniLangValidate.validationOn()) {
@@ -60,7 +59,7 @@ public final class Now extends MethodOpe
if (targetClass == null) {
targetClass = java.sql.Timestamp.class;
}
- this.converter = (Converter<Long, Object>) Converters.getConverter(Long.class, targetClass);
+ this.converter = Converters.getConverter(Long.class, targetClass);
} catch (ClassNotFoundException e) {
throw new ValidationException(e.getMessage(), simpleMethod, element);
}