You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@river.apache.org by ma...@apache.org on 2008/02/10 13:12:46 UTC

svn commit: r620266 - /incubator/river/jtsk/trunk/src/com/sun/jini/resource/Service.java

Author: marbro
Date: Sun Feb 10 04:12:45 2008
New Revision: 620266

URL: http://svn.apache.org/viewvc?rev=620266&view=rev
Log:
Added the fix for RIVER-18 that maintains the declared order of service providers.

Modified:
    incubator/river/jtsk/trunk/src/com/sun/jini/resource/Service.java

Modified: incubator/river/jtsk/trunk/src/com/sun/jini/resource/Service.java
URL: http://svn.apache.org/viewvc/incubator/river/jtsk/trunk/src/com/sun/jini/resource/Service.java?rev=620266&r1=620265&r2=620266&view=diff
==============================================================================
--- incubator/river/jtsk/trunk/src/com/sun/jini/resource/Service.java (original)
+++ incubator/river/jtsk/trunk/src/com/sun/jini/resource/Service.java Sun Feb 10 04:12:45 2008
@@ -31,7 +31,7 @@
 import java.util.List;
 import java.util.NoSuchElementException;
 import java.util.Set;
-import java.util.TreeSet;
+import java.util.LinkedHashSet;
 
 
 /**
@@ -181,7 +181,7 @@
      *         The service class for which providers are being sought;
      *         used to construct error detail strings
      *
-     * @param  url
+     * @param  u
      *         The URL naming the configuration file to be parsed
      *
      * @param  returned
@@ -231,7 +231,7 @@
 	ClassLoader loader;
 	Enumeration configs = null;
 	Iterator pending = null;
-	Set returned = new TreeSet();
+	Set returned = new LinkedHashSet();
 	String nextName = null;
 
 	private LazyIterator(Class service, ClassLoader loader) {
@@ -319,7 +319,7 @@
      *         be used
      * 
      * @return An <tt>Iterator</tt> that yields provider objects for the given
-     *         service, in some arbitrary order.  The iterator will throw a
+     *         service, in instantiation order.  The iterator will throw a
      *         <tt>ServiceConfigurationError</tt> if a provider-configuration
      *         file violates the specified format or if a provider class cannot
      *         be found and instantiated.