svn commit: r18318 - trunk/src/argouml-app/src/org/argouml/profile/internal/DependencyResolver.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: euluis
Date: 2010-04-20 14:52:26-0700
New Revision: 18318

Modified:
   trunk/src/argouml-app/src/org/argouml/profile/internal/DependencyResolver.java

Log:
minor improvements to DependencyResolver which were laying in my working tree

Modified: trunk/src/argouml-app/src/org/argouml/profile/internal/DependencyResolver.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/profile/internal/DependencyResolver.java?view=diff&pathrev=18318&r1=18317&r2=18318
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/profile/internal/DependencyResolver.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/profile/internal/DependencyResolver.java	2010-04-20 14:52:26-0700
@@ -7,13 +7,12 @@
  * http://www.eclipse.org/legal/epl-v10.html
  *
  * Contributors:
- *    euluis
+ *    Luis Sergio Oliveira (euluis)
  *****************************************************************************
  */
 
 package org.argouml.profile.internal;
 
-import java.util.ArrayList;
 import java.util.Collections;
 import java.util.HashSet;
 import java.util.Collection;
@@ -60,12 +59,14 @@
         if (unresolvedItems.isEmpty()) {
             return;
         }
-        final Collection<T> items = Collections.unmodifiableCollection(
-            new ArrayList<T>());
+        final Collection<T> items = Collections.emptyList();
         resolve(items);
     }
 
     /**
+     * Attempt to resolve the dependencies of the items already handed over to
+     * the resolver instance and the additional items handed over now.
+     *
      * @param items additional items to resolve.
      */
     void resolve(Collection<T> items) {

------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=2590860

To unsubscribe from this discussion, e-mail: [[email protected]].
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.