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 2014/11/01 21:50:46 UTC
svn commit: r1636039 -
/commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration2/tree/AbstractImmutableNodeHandler.java
Author: oheger
Date: Sat Nov 1 20:50:46 2014
New Revision: 1636039
URL: http://svn.apache.org/r1636039
Log:
Added missing @Override annotations.
Modified:
commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration2/tree/AbstractImmutableNodeHandler.java
Modified: commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration2/tree/AbstractImmutableNodeHandler.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration2/tree/AbstractImmutableNodeHandler.java?rev=1636039&r1=1636038&r2=1636039&view=diff
==============================================================================
--- commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration2/tree/AbstractImmutableNodeHandler.java (original)
+++ commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration2/tree/AbstractImmutableNodeHandler.java Sat Nov 1 20:50:46 2014
@@ -41,16 +41,19 @@ import org.apache.commons.lang3.StringUt
abstract class AbstractImmutableNodeHandler implements
NodeHandler<ImmutableNode>
{
+ @Override
public String nodeName(ImmutableNode node)
{
return node.getNodeName();
}
+ @Override
public Object getValue(ImmutableNode node)
{
return node.getValue();
}
+ @Override
public List<ImmutableNode> getChildren(ImmutableNode node)
{
return node.getChildren();
@@ -87,6 +90,7 @@ abstract class AbstractImmutableNodeHand
* {@inheritDoc} This implementation returns an immutable list with all
* child nodes that have the specified name.
*/
+ @Override
public List<ImmutableNode> getChildren(ImmutableNode node, String name)
{
List<ImmutableNode> result =
@@ -101,16 +105,19 @@ abstract class AbstractImmutableNodeHand
return Collections.unmodifiableList(result);
}
+ @Override
public ImmutableNode getChild(ImmutableNode node, int index)
{
return node.getChildren().get(index);
}
+ @Override
public int indexOfChild(ImmutableNode parent, ImmutableNode child)
{
return parent.getChildren().indexOf(child);
}
+ @Override
public int getChildrenCount(ImmutableNode node, String name)
{
if (name == null)
@@ -123,16 +130,19 @@ abstract class AbstractImmutableNodeHand
}
}
+ @Override
public Set<String> getAttributes(ImmutableNode node)
{
return node.getAttributes().keySet();
}
+ @Override
public boolean hasAttributes(ImmutableNode node)
{
return !node.getAttributes().isEmpty();
}
+ @Override
public Object getAttributeValue(ImmutableNode node, String name)
{
return node.getAttributes().get(name);
@@ -142,6 +152,7 @@ abstract class AbstractImmutableNodeHand
* {@inheritDoc} This implementation assumes that a node is defined if it
* has a value or has children or has attributes.
*/
+ @Override
public boolean isDefined(ImmutableNode node)
{
return AbstractImmutableNodeHandler.checkIfNodeDefined(node);