cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject svn commit: r360288 - /cocoon/blocks/forms/trunk/java/org/apache/cocoon/forms/binding/JXPathBindingManager.java
Date Sat, 31 Dec 2005 15:02:38 GMT
Author: antonio
Date: Sat Dec 31 07:02:35 2005
New Revision: 360288

URL: http://svn.apache.org/viewcvs?rev=360288&view=rev
Log:
Avoid to create a second Array to return as the result.

Modified:
    cocoon/blocks/forms/trunk/java/org/apache/cocoon/forms/binding/JXPathBindingManager.java

Modified: cocoon/blocks/forms/trunk/java/org/apache/cocoon/forms/binding/JXPathBindingManager.java
URL: http://svn.apache.org/viewcvs/cocoon/blocks/forms/trunk/java/org/apache/cocoon/forms/binding/JXPathBindingManager.java?rev=360288&r1=360287&r2=360288&view=diff
==============================================================================
--- cocoon/blocks/forms/trunk/java/org/apache/cocoon/forms/binding/JXPathBindingManager.java
(original)
+++ cocoon/blocks/forms/trunk/java/org/apache/cocoon/forms/binding/JXPathBindingManager.java
Sat Dec 31 07:02:35 2005
@@ -291,8 +291,7 @@
                         list.add(extra[i]);
                 }
             }	
-            
-            return (JXPathBindingBase[])list.toArray(new JXPathBindingBase[0]);
+            return (JXPathBindingBase[])list.toArray(new JXPathBindingBase[list.size()]);
         }
         
         /**



Mime
View raw message