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 2015/05/16 19:38:55 UTC
svn commit: r1679766 -
/commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration2/XMLConfiguration.java
Author: oheger
Date: Sat May 16 17:38:55 2015
New Revision: 1679766
URL: http://svn.apache.org/r1679766
Log:
Javadoc errors: Incorrect nesting of <p> tags.
Modified:
commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration2/XMLConfiguration.java
Modified: commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration2/XMLConfiguration.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration2/XMLConfiguration.java?rev=1679766&r1=1679765&r2=1679766&view=diff
==============================================================================
--- commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration2/XMLConfiguration.java (original)
+++ commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration2/XMLConfiguration.java Sat May 16 17:38:55 2015
@@ -94,7 +94,6 @@ import org.xml.sax.helpers.DefaultHandle
* The delimiter can be escaped by a backslash. As an example consider the
* following XML fragment:
* </p>
- * <p>
*
* <pre>
* <config>
@@ -104,7 +103,6 @@ import org.xml.sax.helpers.DefaultHandle
* </config>
* </pre>
*
- * </p>
* <p>
* Here the content of the {@code array} element will be split at the commas, so
* the {@code array} key will be assigned 4 values. In the {@code scalar}
@@ -115,6 +113,7 @@ import org.xml.sax.helpers.DefaultHandle
* The configuration API allows setting multiple values for a single attribute,
* e.g. something like the following is legal (assuming that the default
* expression engine is used):
+ * </p>
*
* <pre>
* XMLConfiguration config = new XMLConfiguration();
@@ -122,6 +121,7 @@ import org.xml.sax.helpers.DefaultHandle
* config.addProperty("test.dir[@name]", "D:\\Data\\");
* </pre>
*
+ * <p>
* However, in XML such a constellation is not supported; an attribute can
* appear only once for a single element. Therefore, an attempt to save a
* configuration which violates this condition will throw an exception.
@@ -141,23 +141,23 @@ import org.xml.sax.helpers.DefaultHandle
* cases this is desired. However, sometimes whitespace is indeed important and
* should be treated as part of the value of a property as in the following
* example:
- *
+ * </p>
* <pre>
* <indent> </indent>
* </pre>
*
- * </p>
* <p>
* Per default the spaces in the {@code indent} element will be trimmed
* resulting in an empty element. To tell {@code XMLConfiguration} that spaces
* are relevant the {@code xml:space} attribute can be used, which is defined in
* the <a href="http://www.w3.org/TR/REC-xml/#sec-white-space">XML
* specification</a>. This will look as follows:
- *
+ * </p>
* <pre>
* <indent <strong>xml:space="preserve"</strong>> </indent>
* </pre>
*
+ * <p>
* The value of the {@code indent} property will now contain the spaces.
* </p>
* <p>