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:
Adam Heath
2009-11-16 19:30:11 +00:00
parent 86e49c9158
commit 11b281c025
+1 -14
View File
@@ -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():