Author: thorsten
Date: Wed Dec 3 03:55:46 2008
New Revision: 722848
URL: http://svn.apache.org/viewvc?rev=722848&view=rev
Log:
white noise - formating changes
Modified:
forrest/branches/dispatcher_rewrite/plugins/org.apache.forrest.plugin.internal.dispatcher/src/java/org/apache/forrest/dispatcher/impl/helper/AXIOMXPathCreate.java
Modified:
forrest/branches/dispatcher_rewrite/plugins/org.apache.forrest.plugin.internal.dispatcher/src/java/org/apache/forrest/dispatcher/impl/helper/AXIOMXPathCreate.java
URL:
http://svn.apache.org/viewvc/forrest/branches/dispatcher_rewrite/plugins/org.apache.forrest.plugin.internal.dispatcher/src/java/org/apache/forrest/dispatcher/impl/helper/AXIOMXPathCreate.java?rev=722848&r1=722847&r2=722848&view=diff
==============================================================================
---
forrest/branches/dispatcher_rewrite/plugins/org.apache.forrest.plugin.internal.dispatcher/src/java/org/apache/forrest/dispatcher/impl/helper/AXIOMXPathCreate.java
(original)
+++
forrest/branches/dispatcher_rewrite/plugins/org.apache.forrest.plugin.internal.dispatcher/src/java/org/apache/forrest/dispatcher/impl/helper/AXIOMXPathCreate.java
Wed Dec 3 03:55:46 2008
@@ -32,16 +32,16 @@
/**
*
- * Return the Node from the rootNode using the XPath expression path.
- * If the node does not exist, it is created and then returned. This is a very
- * simple method for creating new nodes. If the XPath contains selectors
([,,,])
- * or "*" it is of course not possible to create the new node. So if you use
- * such XPaths the node must exist beforehand. An simple exception is if the
- * expression contains attribute test to values (e.g. [EMAIL PROTECTED] = 'du'
and @select = 'true'])
+ * Return the Node from the rootNode using the XPath expression path. If the
+ * node does not exist, it is created and then returned. This is a very simple
+ * method for creating new nodes. If the XPath contains selectors ([,,,]) or
"*"
+ * it is of course not possible to create the new node. So if you use such
+ * XPaths the node must exist beforehand. An simple exception is if the
+ * expression contains attribute test to values (e.g. [EMAIL PROTECTED] = 'du'
and @select =
+ * 'true'])
*
*
- * Issue:
- * WSCOMMONS-389
+ * Issue: WSCOMMONS-389
*
* As soon the above issue is fixed we need to drop this implementation since
* this class will be go into the axiom code base.
@@ -81,8 +81,9 @@
xpathNode = xpath.selectSingleNode(root);
if (xpathNode == null) {
int endIndex = path.lastIndexOf("/");
- if(endIndex<0){
- // we need to break here if we do not want to provoke a
StringIndexOutOfBoundsException
+ if (endIndex < 0) {
+ // we need to break here if we do not want to provoke a
+ // StringIndexOutOfBoundsException
break;
}
rest = path.substring(endIndex + 1) + "/" + rest;