Fix javadoc to comply with JDK14 78/90778/1
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 26 Jun 2020 19:57:44 +0000 (21:57 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 26 Jun 2020 20:26:24 +0000 (22:26 +0200)
JDK14 has a stricter default doclet. Fix issues reported by it so
that the code can be compiled with JDK14.

Change-Id: Ieffe3450feeb0d4d9525f3434a17fd8e0dd8c0e4
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/Revision.java
yang/yang-data-api/src/main/java/org/opendaylight/yangtools/yang/data/api/YangInstanceIdentifier.java
yang/yang-data-api/src/main/java/org/opendaylight/yangtools/yang/data/api/schema/DataContainerChild.java
yang/yang-data-api/src/main/java/org/opendaylight/yangtools/yang/data/api/schema/DataContainerNode.java
yang/yang-data-api/src/main/java/org/opendaylight/yangtools/yang/data/api/schema/LeafSetEntryNode.java
yang/yang-data-api/src/main/java/org/opendaylight/yangtools/yang/data/api/schema/ValueNode.java
yang/yang-data-api/src/main/java/org/opendaylight/yangtools/yang/data/api/schema/stream/NormalizedNodeStreamWriter.java

index a4788d3d7f1c407a27bd1953fc1268c64fe232df..a7e0d209054780f7de0e757214b9736c8be90f05 100644 (file)
@@ -26,7 +26,7 @@ import org.opendaylight.yangtools.concepts.Immutable;
 /**
  * Dedicated object identifying a YANG module revision.
  *
- * <h3>API design note</h3>
+ * <h2>API design note</h2>
  * This class defines the contents of a revision statement, but modules do not require to have a revision (e.g. they
  * have not started to keep track of revisions).
  *
index 3c24ab3b8537ea48d52e8f13828b4f106d2f9ffc..d27ebd9ce21e03f0f4dce80e47ad318d6c02dbe5 100644 (file)
@@ -55,31 +55,24 @@ import org.opendaylight.yangtools.yang.data.api.schema.LeafSetEntryNode;
  * Unique identifier of a particular node instance in the data tree.
  *
  * <p>
- * Java representation of YANG Built-in type <code>instance-identifier</code>,
- * which conceptually is XPath expression minimized to uniquely identify element
- * in data tree which conforms to constraints maintained by YANG Model,
+ * Java representation of YANG Built-in type {@code instance-identifier}, which conceptually is XPath expression
+ * minimized to uniquely identify element in data tree which conforms to constraints maintained by YANG Model,
  * effectively this makes Instance Identifier a path to element in data tree.
  *
  * <p>
- * Constraints put in YANG specification on instance-identifier allowed it to be
- * effectively represented in Java and it's evaluation does not require
- * full-blown XPath processor.
+ * Constraints put in YANG specification on instance-identifier allowed it to be effectively represented in Java and its
+ * evaluation does not require a full-blown XPath processor.
  *
- * <p>
- * <h3>Path Arguments</h3>
- * Path to the node represented in instance identifier consists of
- * {@link PathArgument} which carries necessary information to uniquely identify
- * node on particular level in the subtree.
+ * <h2>Path Arguments</h2>
+ * Path to the node represented in instance identifier consists of {@link PathArgument} which carries necessary
+ * information to uniquely identify node on particular level in the subtree.
  *
  * <ul>
- * <li>{@link NodeIdentifier} - Identifier of node, which has cardinality
- * <code>0..1</code> in particular subtree in data tree.</li>
- * <li>{@link NodeIdentifierWithPredicates} - Identifier of node (list item),
- * which has cardinality <code>0..n</code>.</li>
- * <li>{@link NodeWithValue} - Identifier of instance <code>leaf</code> node or
- * <code>leaf-list</code> node.</li>
- * <li>{@link AugmentationIdentifier} - Identifier of instance of
- * <code>augmentation</code> node.</li>
+ *   <li>{@link NodeIdentifier} - Identifier of node, which has cardinality {@code 0..1} in particular subtree in data
+ *       tree</li>
+ *   <li>{@link NodeIdentifierWithPredicates} - Identifier of node (list item), which has cardinality {@code 0..n}</li>
+ *   <li>{@link NodeWithValue} - Identifier of instance {@code leaf} node or {@code leaf-list} node</li>
+ *   <li>{@link AugmentationIdentifier} - Identifier of instance of {@code augmentation} node</li>
  * </ul>
  *
  * @see <a href="http://tools.ietf.org/html/rfc6020#section-9.13">RFC6020</a>
index 993949296a5892b39ab3de2f764c82f69a337bac..fb1d803c668a0f5afa4861e6847b849ffe799ce3 100644 (file)
@@ -12,16 +12,15 @@ import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgum
 /**
  * Marker interface for direct children of {@link DataContainerNode}.
  *
- * <h3>Implementation notes</h3>
- * This interface should not be implemented directly, but rather using one
- * of its subinterfaces:
+ * <h2>Implementation notes</h2>
+ * This interface should not be implemented directly, but rather using one of its subinterfaces:
  *
  * <ul>
- * <li>{@link LeafNode}
- * <li>{@link ContainerNode}
- * <li>{@link ChoiceNode}
- * <li>{@link MapNode}
- * <li>{@link AugmentationNode}
+ *   <li>{@link LeafNode}
+ *   <li>{@link ContainerNode}
+ *   <li>{@link ChoiceNode}
+ *   <li>{@link MapNode}
+ *   <li>{@link AugmentationNode}
  * </ul>
  *
  * @param <K> Path Argument Type which is used to identify node
index c99b19b86e08f945dc2cc5ef26e2212ba8bc3613..d58126d1447abfa326aee990586ae72a1b90708a 100644 (file)
@@ -11,18 +11,17 @@ import java.util.Collection;
 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument;
 
 /**
- * Abstract node which does not have value but contains valid {@link DataContainerChild} nodes.
- * Schema of this node is described by instance of {@link org.opendaylight.yangtools.yang.model.api.DataNodeContainer}.
+ * Abstract node which does not have value but contains valid {@link DataContainerChild} nodes. Schema of this node is
+ * described by instance of {@link org.opendaylight.yangtools.yang.model.api.DataNodeContainer}.
  *
- * <p>
  * <h2>Implementation notes</h2>
  * This interface should not be implemented directly, but rather implementing one of it's subclasses
  * <ul>
- * <li>{@link ContainerNode}
- * <li>{@link MapEntryNode}
- * <li>{@link UnkeyedListEntryNode}
- * <li>{@link ChoiceNode}
- * <li>{@link AugmentationNode}
+ *   <li>{@link ContainerNode}
+ *   <li>{@link MapEntryNode}
+ *   <li>{@link UnkeyedListEntryNode}
+ *   <li>{@link ChoiceNode}
+ *   <li>{@link AugmentationNode}
  * </ul>
  *
  * @param <K> {@link PathArgument} which identifies instance of {@link DataContainerNode}
@@ -30,13 +29,12 @@ import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgum
 public interface DataContainerNode<K extends PathArgument> extends
         NormalizedNodeContainer<K, PathArgument, DataContainerChild<? extends PathArgument, ?>> {
     /**
-     * Returns iteration of all child nodes.
-     * Order of returned child nodes may be defined by subinterfaces.
+     * Returns iteration of all child nodes. Order of returned child nodes may be defined by subinterfaces.
      *
      * <p>
      * <b>Implementation Notes:</b>
-     * All nodes returned in this iterable, MUST also be accessible via
-     * {@link #getChild(PathArgument)} using their associated identifier.
+     * All nodes returned in this iterable, MUST also be accessible via {@link #getChild(PathArgument)} using their
+     * associated identifier.
      *
      * @return Iteration of all child nodes
      */
index 63f9127f325472a51f6be9778c2b9fed1ba40d8b..6a257f01245a2e6e54c7590abc3f6fa38b7b9536 100644 (file)
@@ -10,28 +10,20 @@ package org.opendaylight.yangtools.yang.data.api.schema;
 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeWithValue;
 
 /**
- * Leaf node with multiplicity 0...n.
+ * Leaf node with multiplicity 0...n. Leaf node has a value, but no child nodes in the data tree, schema for leaf node
+ * and its value is described by {@link org.opendaylight.yangtools.yang.model.api.LeafListSchemaNode}.
  *
- * <p>
- * Leaf node has a value, but no child nodes in the data tree, schema
- * for leaf node and its value is described by
- * {@link org.opendaylight.yangtools.yang.model.api.LeafListSchemaNode}.
- *
- * @param <T>
- *            Value type
+ * @param <T> Value type
  */
 public interface LeafSetEntryNode<T> extends NormalizedNode<NodeWithValue, T>, ValueNode<NodeWithValue, T> {
     /**
-     * Returns {@link NodeWithValue} which identifies this leaf set entry.
-     * Returned {@link NodeWithValue} contains same value as this node.
+     * Returns {@link NodeWithValue} which identifies this leaf set entry. Returned {@link NodeWithValue} contains same
+     * value as this node.
      *
-     * <p>
-     * <h3>Implementation notes</h3> Invocation of
-     * {@link NodeWithValue#getValue()} on returned instance of
-     * {@link NodeWithValue} must returns
-     * same value as invocation of {@link #getValue()}, such as
-     * following condition is allways met:
-     * <code>true == this.getIdentifier().getValue().equals(this.getValue())</code>
+     * <b>Implementation note</b>
+     * Invocation of {@link NodeWithValue#getValue()} on returned instance of {@link NodeWithValue} must return the
+     * same value as invocation of {@link #getValue()}, such as following condition is always met:
+     * {@code true == this.getIdentifier().getValue().equals(this.getValue())}.
      *
      * @return {@link NodeWithValue} which identifies this leaf set entry.
      */
index eb70bfaa987791827d53bba969a06dda178eeebd..1556d8bbec315ecd61ef3b3d3be1e378545ba05a 100644 (file)
@@ -12,8 +12,6 @@ import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgum
 /**
  * Interface holding the common trait of {@link LeafSetEntryNode} and {@link LeafNode}, which both hold a value.
  *
- * @author Robert Varga
- *
  * @param <K> Local identifier of node
  * @param <V> Value of node
  */
@@ -21,13 +19,11 @@ public interface ValueNode<K extends PathArgument, V> extends NormalizedNode<K,
     /**
      * Returns value of held by this node.
      *
-     * <h3>Implementation notes</h3> Invocation of {@link #getValue()} must
-     * provides same value as value in {@link #getIdentifier()}.
-     * <code>true == this.getIdentifier().getValue().equals(this.getValue())</code>
-     *
-     * @return Returned value of this node. Value SHOULD meet criteria
-     *         defined by schema.
+     * <b>Implementation note</b>
+     * Invocation of {@link #getValue()} must provide the same value as value in {@link #getIdentifier()}.
+     * {@code true == this.getIdentifier().getValue().equals(this.getValue())}.
      *
+     * @return Returned value of this node. Value SHOULD meet criteria defined by schema.
      */
     @Override
     V getValue();
index 6b0cc051a84d6298b3cadabcdb770e0434b2718d..b2d5ccb12b5eecc95279174755e0cc1aa9bb8b45 100644 (file)
@@ -25,7 +25,7 @@ import org.opendaylight.yangtools.yang.model.api.DataSchemaNode;
 /**
  * Event Stream Writer based on Normalized Node tree representation.
  *
- * <h3>Writing Event Stream</h3>
+ * <h2>Writing Event Stream</h2>
  * Each entity is emitted by invoking its corresponding {@code start*} event, optionally followed by interior events and
  * invoking {@link #endNode()}. Some entities supported nested entities, some do not, see below for restrictions.
  *
@@ -392,6 +392,7 @@ public interface NormalizedNodeStreamWriter extends Closeable, Flushable,
      * @throws IllegalArgumentException if the argument does not represents a valid value
      * @throws IllegalStateException if a value-bearing node is not open or if it's value has already been set and this
      *                               implementation does not allow resetting the value.
+     * @throws IOException if an underlying IO error occurs
      */
     void scalarValue(@NonNull Object value) throws IOException;