Bother, I should have never used the conversion framework.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@880919 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -51,10 +51,6 @@ import javolution.util.FastList;
|
||||
import javolution.util.FastMap;
|
||||
import javolution.util.FastSet;
|
||||
|
||||
import org.ofbiz.base.conversion.ConversionException;
|
||||
import org.ofbiz.base.conversion.Converter;
|
||||
import org.ofbiz.base.conversion.Converters;
|
||||
|
||||
public class Parser {
|
||||
}
|
||||
|
||||
@@ -659,16 +655,7 @@ private String OrderByItem():
|
||||
private Integer Integer():
|
||||
{}
|
||||
{
|
||||
<INTEGER> {
|
||||
try {
|
||||
Converter<String, Integer> converter = Converters.getConverter(String.class, Integer.class);
|
||||
return converter.convert(getToken(0).image);
|
||||
} catch (ClassNotFoundException e) {
|
||||
return null;
|
||||
} catch (ConversionException e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
<INTEGER> { return Integer.decode(getToken(0).image); }
|
||||
}
|
||||
|
||||
private Value Value():
|
||||
|
||||
Reference in New Issue
Block a user