You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by oh...@apache.org on 2006/07/25 22:44:58 UTC
svn commit: r425521 -
/jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/tree/xpath/
Author: oheger
Date: Tue Jul 25 13:44:57 2006
New Revision: 425521
URL: http://svn.apache.org/viewvc?rev=425521&view=rev
Log:
Checkstyle
Modified:
jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/tree/xpath/ConfigurationNodeIteratorAttribute.java
jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/tree/xpath/ConfigurationNodeIteratorBase.java
jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/tree/xpath/ConfigurationNodeIteratorChildren.java
jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/tree/xpath/ConfigurationNodePointer.java
jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/tree/xpath/ConfigurationNodePointerFactory.java
jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/tree/xpath/XPathExpressionEngine.java
Modified: jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/tree/xpath/ConfigurationNodeIteratorAttribute.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/tree/xpath/ConfigurationNodeIteratorAttribute.java?rev=425521&r1=425520&r2=425521&view=diff
==============================================================================
--- jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/tree/xpath/ConfigurationNodeIteratorAttribute.java (original)
+++ jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/tree/xpath/ConfigurationNodeIteratorAttribute.java Tue Jul 25 13:44:57 2006
@@ -1,7 +1,7 @@
/*
* Copyright 2006 The Apache Software Foundation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Licensed under the Apache License, Version 2.0 (the "License")
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
@@ -25,7 +25,7 @@
/**
* A specialized node iterator implementation that deals with attribute nodes.
- *
+ *
* @author Oliver Heger
* @version $Id$
*/
@@ -34,7 +34,7 @@
{
/** Constant for the wildcard node name.*/
private static final String WILDCARD = "*";
-
+
/**
* Creates a new instance of <code>ConfigurationNodeIteratorAttribute</code>.
* @param parent the parent node pointer
@@ -43,9 +43,10 @@
public ConfigurationNodeIteratorAttribute(NodePointer parent, QName name)
{
super(parent, false);
- initSubNodeList(createSubNodeList((ConfigurationNode) parent.getNode(), name));
+ initSubNodeList(createSubNodeList((ConfigurationNode) parent.getNode(),
+ name));
}
-
+
/**
* Determines which attributes are selected based on the passed in node
* name.
@@ -55,14 +56,14 @@
*/
protected List createSubNodeList(ConfigurationNode node, QName name)
{
- if(name.getPrefix() != null)
+ if (name.getPrefix() != null)
{
// namespace prefixes are not supported
return Collections.EMPTY_LIST;
}
-
+
List result = new ArrayList();
- if(!WILDCARD.equals(name.getName()))
+ if (!WILDCARD.equals(name.getName()))
{
result.addAll(node.getAttributes(name.getName()));
}
@@ -70,7 +71,7 @@
{
result.addAll(node.getAttributes());
}
-
+
return result;
}
}
Modified: jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/tree/xpath/ConfigurationNodeIteratorBase.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/tree/xpath/ConfigurationNodeIteratorBase.java?rev=425521&r1=425520&r2=425521&view=diff
==============================================================================
--- jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/tree/xpath/ConfigurationNodeIteratorBase.java (original)
+++ jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/tree/xpath/ConfigurationNodeIteratorBase.java Tue Jul 25 13:44:57 2006
@@ -1,7 +1,7 @@
/*
* Copyright 2006 The Apache Software Foundation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Licensed under the Apache License, Version 2.0 (the "License")
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
Modified: jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/tree/xpath/ConfigurationNodeIteratorChildren.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/tree/xpath/ConfigurationNodeIteratorChildren.java?rev=425521&r1=425520&r2=425521&view=diff
==============================================================================
--- jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/tree/xpath/ConfigurationNodeIteratorChildren.java (original)
+++ jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/tree/xpath/ConfigurationNodeIteratorChildren.java Tue Jul 25 13:44:57 2006
@@ -1,7 +1,7 @@
/*
* Copyright 2006 The Apache Software Foundation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Licensed under the Apache License, Version 2.0 (the "License")
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
Modified: jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/tree/xpath/ConfigurationNodePointer.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/tree/xpath/ConfigurationNodePointer.java?rev=425521&r1=425520&r2=425521&view=diff
==============================================================================
--- jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/tree/xpath/ConfigurationNodePointer.java (original)
+++ jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/tree/xpath/ConfigurationNodePointer.java Tue Jul 25 13:44:57 2006
@@ -1,7 +1,7 @@
/*
* Copyright 2006 The Apache Software Foundation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Licensed under the Apache License, Version 2.0 (the "License")
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
Modified: jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/tree/xpath/ConfigurationNodePointerFactory.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/tree/xpath/ConfigurationNodePointerFactory.java?rev=425521&r1=425520&r2=425521&view=diff
==============================================================================
--- jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/tree/xpath/ConfigurationNodePointerFactory.java (original)
+++ jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/tree/xpath/ConfigurationNodePointerFactory.java Tue Jul 25 13:44:57 2006
@@ -1,7 +1,7 @@
/*
* Copyright 2006 The Apache Software Foundation
*
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Licensed under the Apache License, Version 2.0 (the "License")
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
Modified: jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/tree/xpath/XPathExpressionEngine.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/tree/xpath/XPathExpressionEngine.java?rev=425521&r1=425520&r2=425521&view=diff
==============================================================================
--- jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/tree/xpath/XPathExpressionEngine.java (original)
+++ jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/tree/xpath/XPathExpressionEngine.java Tue Jul 25 13:44:57 2006
@@ -251,7 +251,8 @@
protected void initNodeAddData(NodeAddData data, String path)
{
String lastComponent = null;
- boolean attr = false, first = true;
+ boolean attr = false;
+ boolean first = true;
StringTokenizer tok = new StringTokenizer(path, NODE_PATH_DELIMITERS,
true);
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org