svn commit: r880919 - /ofbiz/trunk/framework/sql/src/org/ofbiz/sql/Parser.jj

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r880919 - /ofbiz/trunk/framework/sql/src/org/ofbiz/sql/Parser.jj

doogie-3
Author: doogie
Date: Mon Nov 16 19:30:11 2009
New Revision: 880919

URL: http://svn.apache.org/viewvc?rev=880919&view=rev
Log:
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():