commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r800071 - /commons/proper/jexl/branches/2.0/src/main/java/org/apache/commons/jexl/util/Introspector.java
Date Sun, 02 Aug 2009 13:26:34 GMT
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;
         }



Mime
View raw message