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:51:51 UTC

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

Author: oheger
Date: Sat Nov 26 16:51:50 2011
New Revision: 1206491

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

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

Modified: commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/tree/xpath/ConfigurationNodeIteratorBase.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/tree/xpath/ConfigurationNodeIteratorBase.java?rev=1206491&r1=1206490&r2=1206491&view=diff
==============================================================================
--- commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/tree/xpath/ConfigurationNodeIteratorBase.java (original)
+++ commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/tree/xpath/ConfigurationNodeIteratorBase.java Sat Nov 26 16:51:50 2011
@@ -33,7 +33,9 @@ import org.apache.commons.jxpath.ri.mode
  * </p>
  *
  * @since 1.3
- * @author Oliver Heger
+ * @author <a
+ * href="http://commons.apache.org/configuration/team-list.html">Commons
+ * Configuration team</a>
  * @version $Id$
  */
 abstract class ConfigurationNodeIteratorBase implements NodeIterator
@@ -42,7 +44,7 @@ abstract class ConfigurationNodeIterator
     private NodePointer parent;
 
     /** Stores the list with the sub nodes. */
-    private List subNodes;
+    private List<ConfigurationNode> subNodes;
 
     /** Stores the current position. */
     private int position;
@@ -54,7 +56,7 @@ abstract class ConfigurationNodeIterator
     private boolean reverse;
 
     /**
-     * Creates a new instance of <code>ConfigurationNodeIteratorBase</code>
+     * Creates a new instance of {@code ConfigurationNodeIteratorBase}
      * and initializes it.
      *
      * @param parent the parent pointer
@@ -100,8 +102,7 @@ abstract class ConfigurationNodeIterator
             return null;
         }
 
-        return createNodePointer((ConfigurationNode) subNodes
-                .get(positionToIndex(getPosition())));
+        return createNodePointer(subNodes.get(positionToIndex(getPosition())));
     }
 
     /**
@@ -149,7 +150,7 @@ abstract class ConfigurationNodeIterator
      *
      * @param nodes the list with the sub nodes
      */
-    protected void initSubNodeList(List nodes)
+    protected void initSubNodeList(List<ConfigurationNode> nodes)
     {
         subNodes = nodes;
         if (reverse)
@@ -171,7 +172,7 @@ abstract class ConfigurationNodeIterator
 
     /**
      * Creates the configuration node pointer for the current position. This
-     * method is called by <code>getNodePointer()</code>. Derived classes
+     * method is called by {@code getNodePointer()}. Derived classes
      * must create the correct pointer object.
      *
      * @param node the current configuration node