commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From denn...@apache.org
Subject svn commit: r569081 - /commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/ScriptableList.java
Date Thu, 23 Aug 2007 17:40:11 GMT
Author: dennisl
Date: Thu Aug 23 10:40:07 2007
New Revision: 569081

URL: http://svn.apache.org/viewvc?rev=569081&view=rev
Log:
Replace Java 1.5 call with a suitable replacement.

Modified:
    commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/ScriptableList.java

Modified: commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/ScriptableList.java
URL: http://svn.apache.org/viewvc/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/ScriptableList.java?rev=569081&r1=569080&r2=569081&view=diff
==============================================================================
--- commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/ScriptableList.java (original)
+++ commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/ScriptableList.java Thu
Aug 23 10:40:07 2007
@@ -95,7 +95,7 @@
         //TODO: optimize this :)
         Integer[] ids = new Integer[list.size()];
         for (int x = 0; x < ids.length; x++) {
-            ids[x] = Integer.valueOf(x);
+            ids[x] = new Integer(x);
         }
         return ids;
     }



Mime
View raw message