simplify a statement in NormalizedNodeInputStreamReader 76/74476/2
authorMichael Vorburger <vorburger@redhat.com>
Wed, 25 Jul 2018 21:47:46 +0000 (23:47 +0200)
committerTom Pantelis <tompantelis@gmail.com>
Mon, 30 Jul 2018 11:46:50 +0000 (11:46 +0000)
and fix a JavaDoc warning in NormalizedNodeOutputStreamWriter

Change-Id: I471dc3d4c8d1327fa8adaca89b8ca1d46036929d
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/NormalizedNodeInputStreamReader.java
opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/NormalizedNodeOutputStreamWriter.java

index cc744438ff627b64594847323623b72cae6772c7..211f8b521f7bb267815085cdd0a4ecba2d7085bf 100755 (executable)
@@ -214,12 +214,10 @@ public class NormalizedNodeInputStreamReader implements NormalizedNodeDataInput
 
             case NodeTypes.ORDERED_LEAF_SET:
                 LOG.trace("Read ordered leaf set node {}", identifier);
-                ListNodeBuilder<Object, LeafSetEntryNode<Object>> orderedLeafSetBuilder =
-                        Builders.orderedLeafSetBuilder().withNodeIdentifier(identifier);
-                orderedLeafSetBuilder = addLeafSetChildren(identifier.getNodeType(), orderedLeafSetBuilder);
-                return orderedLeafSetBuilder.build();
+                return addLeafSetChildren(identifier.getNodeType(),
+                        Builders.orderedLeafSetBuilder().withNodeIdentifier(identifier)).build();
 
-            default :
+            default:
                 return null;
         }
     }
index b81de75bb506a50b48d42ddace3d389046e612e4..40ca4f2e8693ce6c025909c643fd2041b7331c15 100644 (file)
@@ -25,8 +25,8 @@ import org.opendaylight.yangtools.yang.common.Revision;
  * then will call
  * {@link #leafNode(org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier, Object)} twice
  * and then, {@link #endNode()} to end container node.
- * <p/>
- * Based on the each node, the node type is also written to the stream, that helps in reconstructing the object,
+ *
+ * <p>Based on the each node, the node type is also written to the stream, that helps in reconstructing the object,
  * while reading.
  */
 final class NormalizedNodeOutputStreamWriter extends AbstractNormalizedNodeDataOutput {