commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r554058 - /jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/JXPathContextReferenceImpl.java
Date Fri, 06 Jul 2007 21:17:27 GMT
Author: mbenson
Date: Fri Jul  6 14:17:26 2007
New Revision: 554058

URL: http://svn.apache.org/viewvc?view=rev&rev=554058
Log:
efficiency; ws

Modified:
    jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/JXPathContextReferenceImpl.java

Modified: jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/JXPathContextReferenceImpl.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/JXPathContextReferenceImpl.java?view=diff&rev=554058&r1=554057&r2=554058
==============================================================================
--- jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/JXPathContextReferenceImpl.java
(original)
+++ jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/JXPathContextReferenceImpl.java
Fri Jul  6 14:17:26 2007
@@ -165,7 +165,7 @@
         if (nodeFactoryArray == null) {
             nodeFactoryArray =
                 (NodePointerFactory[]) nodeFactories.
-                    toArray(new NodePointerFactory[0]);
+                    toArray(new NodePointerFactory[nodeFactories.size()]);
             Arrays.sort(nodeFactoryArray, new Comparator() {
                 public int compare(Object a, Object b) {
                     int orderA = ((NodePointerFactory) a).getOrder();
@@ -175,7 +175,7 @@
             });
         }
     }
-    
+
     /**
      * Call this with a custom NodePointerFactory to add support for
      * additional types of objects.  Make sure the factory returns



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message