You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by oh...@apache.org on 2011/11/26 17:52:17 UTC

svn commit: r1206492 - /commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/tree/xpath/ConfigurationNodeIteratorAttribute.java

Author: oheger
Date: Sat Nov 26 16:52:16 2011
New Revision: 1206492

URL: http://svn.apache.org/viewvc?rev=1206492&view=rev
Log:
Java 1.5 compatibility: Javadocs, raw types.

Modified:
    commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/tree/xpath/ConfigurationNodeIteratorAttribute.java

Modified: commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/tree/xpath/ConfigurationNodeIteratorAttribute.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/tree/xpath/ConfigurationNodeIteratorAttribute.java?rev=1206492&r1=1206491&r2=1206492&view=diff
==============================================================================
--- commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/tree/xpath/ConfigurationNodeIteratorAttribute.java (original)
+++ commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/tree/xpath/ConfigurationNodeIteratorAttribute.java Sat Nov 26 16:52:16 2011
@@ -27,7 +27,9 @@ import org.apache.commons.jxpath.ri.mode
 /**
  * A specialized node iterator implementation that deals with attribute nodes.
  *
- * @author Oliver Heger
+ * @author <a
+ * href="http://commons.apache.org/configuration/team-list.html">Commons
+ * Configuration team</a>
  * @version $Id$
  */
 class ConfigurationNodeIteratorAttribute extends
@@ -37,7 +39,7 @@ class ConfigurationNodeIteratorAttribute
     private static final String WILDCARD = "*";
 
     /**
-     * Creates a new instance of <code>ConfigurationNodeIteratorAttribute</code>.
+     * Creates a new instance of {@code ConfigurationNodeIteratorAttribute}.
      * @param parent the parent node pointer
      * @param name the name of the selected attribute
      */
@@ -55,15 +57,15 @@ class ConfigurationNodeIteratorAttribute
      * @param name the name of the selected attribute
      * @return a list with the selected attributes
      */
-    protected List createSubNodeList(ConfigurationNode node, QName name)
+    protected List<ConfigurationNode> createSubNodeList(ConfigurationNode node, QName name)
     {
         if (name.getPrefix() != null)
         {
             // namespace prefixes are not supported
-            return Collections.EMPTY_LIST;
+            return Collections.emptyList();
         }
 
-        List result = new ArrayList();
+        List<ConfigurationNode> result = new ArrayList<ConfigurationNode>();
         if (!WILDCARD.equals(name.getName()))
         {
             result.addAll(node.getAttributes(name.getName()));