Author: doogie
Date: Mon Nov 16 19:30:11 2009
New Revision: 880919
URL:
http://svn.apache.org/viewvc?rev=880919&view=revLog:
Bother, I should have never used the conversion framework.
Modified:
ofbiz/trunk/framework/sql/src/org/ofbiz/sql/Parser.jj
Modified: ofbiz/trunk/framework/sql/src/org/ofbiz/sql/Parser.jj
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/sql/src/org/ofbiz/sql/Parser.jj?rev=880919&r1=880918&r2=880919&view=diff==============================================================================
--- ofbiz/trunk/framework/sql/src/org/ofbiz/sql/Parser.jj (original)
+++ ofbiz/trunk/framework/sql/src/org/ofbiz/sql/Parser.jj Mon Nov 16 19:30:11 2009
@@ -51,10 +51,6 @@
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 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():