You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2009/08/02 15:26:34 UTC

svn commit: r800071 - /commons/proper/jexl/branches/2.0/src/main/java/org/apache/commons/jexl/util/Introspector.java

Author: sebb
Date: Sun Aug  2 13:26:34 2009
New Revision: 800071

URL: http://svn.apache.org/viewvc?rev=800071&view=rev
Log:
Remove Autoboxing

Modified:
    commons/proper/jexl/branches/2.0/src/main/java/org/apache/commons/jexl/util/Introspector.java

Modified: commons/proper/jexl/branches/2.0/src/main/java/org/apache/commons/jexl/util/Introspector.java
URL: http://svn.apache.org/viewvc/commons/proper/jexl/branches/2.0/src/main/java/org/apache/commons/jexl/util/Introspector.java?rev=800071&r1=800070&r2=800071&view=diff
==============================================================================
--- commons/proper/jexl/branches/2.0/src/main/java/org/apache/commons/jexl/util/Introspector.java (original)
+++ commons/proper/jexl/branches/2.0/src/main/java/org/apache/commons/jexl/util/Introspector.java Sun Aug  2 13:26:34 2009
@@ -90,10 +90,10 @@
             return null;
         }
         if (arg instanceof Number) {
-            return ((Number) arg).intValue();
+            return Integer.valueOf(((Number) arg).intValue());
         }
         try {
-            return Integer.parseInt(arg.toString());
+            return Integer.valueOf(arg.toString());
         } catch(NumberFormatException xnumber) {
             return null;
         }