Author: oheger
Date: Thu Feb 20 20:46:02 2014
New Revision: 1570344
URL: http://svn.apache.org/r1570344
Log:
Adapted ConfigurationNodeVisitorAdapter to the changes in the interface.
The dummy methods now use the correct method signature.
Modified:
commons/proper/configuration/branches/immutableNodes/src/main/java/org/apache/commons/configuration/tree/ConfigurationNodeVisitorAdapter.java
Modified:
commons/proper/configuration/branches/immutableNodes/src/main/java/org/apache/commons/configuration/tree/ConfigurationNodeVisitorAdapter.java
URL:
http://svn.apache.org/viewvc/commons/proper/configuration/branches/immutableNodes/src/main/java/org/apache/commons/configuration/tree/ConfigurationNodeVisitorAdapter.java?rev=1570344&r1=1570343&r2=1570344&view=diff
==============================================================================
---
commons/proper/configuration/branches/immutableNodes/src/main/java/org/apache/commons/configuration/tree/ConfigurationNodeVisitorAdapter.java
(original)
+++
commons/proper/configuration/branches/immutableNodes/src/main/java/org/apache/commons/configuration/tree/ConfigurationNodeVisitorAdapter.java
Thu Feb 20 20:46:02 2014
@@ -27,36 +27,29 @@ package org.apache.commons.configuration
* to override the methods they really need.
* </p>
*
- * @author <a
- * href="http://commons.apache.org/configuration/team-list.html">Commons
- * Configuration team</a>
* @version $Id$
+ * @param <T> the type of the nodes processed by this visitor
*/
-public class ConfigurationNodeVisitorAdapter implements
- ConfigurationNodeVisitor
+public class ConfigurationNodeVisitorAdapter<T> implements
+ ConfigurationNodeVisitor<T>
{
/**
- * Empty dummy implementation of this interface method.
- *
- * @param node the node
+ * {@inheritDoc} Empty dummy implementation of this interface method.
*/
- public void visitBeforeChildren(ConfigurationNode node)
+ public void visitBeforeChildren(T node, NodeHandler<T> handler)
{
}
/**
- * Empty dummy implementation of this interface method.
- *
- * @param node the node
+ * {@inheritDoc} Empty dummy implementation of this interface method.
*/
- public void visitAfterChildren(ConfigurationNode node)
+ public void visitAfterChildren(T node, NodeHandler<T> handler)
{
}
/**
- * Dummy implementation of this interface method. Returns always
<b>false</b>.
- *
- * @return the terminate flag
+ * {@inheritDoc} This implementation returns always <b>false</b>; this
means
+ * that all nodes in the current hierarchy are traversed.
*/
public boolean terminate()
{