From: Robert Varga Date: Thu, 26 Nov 2015 11:44:11 +0000 (+0100) Subject: Automatic addition of final keywords X-Git-Tag: release/beryllium~129 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=commitdiff_plain;h=a03f18aaaa755a99e4f504b7f0efac74ab8339ab Automatic addition of final keywords Mostly method arguments, prior to making any other change. Change-Id: Ie25e0284fea0acf004fe43e4f0ac6f67843be25c Signed-off-by: Robert Varga --- diff --git a/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/NormalizedNodeInputStreamReader.java b/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/NormalizedNodeInputStreamReader.java index 8c95397098..cea8fad4ea 100644 --- a/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/NormalizedNodeInputStreamReader.java +++ b/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/NormalizedNodeInputStreamReader.java @@ -70,12 +70,12 @@ public class NormalizedNodeInputStreamReader implements NormalizedNodeStreamRead private boolean readSignatureMarker = true; - public NormalizedNodeInputStreamReader(InputStream stream) throws IOException { + public NormalizedNodeInputStreamReader(final InputStream stream) throws IOException { Preconditions.checkNotNull(stream); input = new DataInputStream(stream); } - public NormalizedNodeInputStreamReader(DataInput input) { + public NormalizedNodeInputStreamReader(final DataInput input) { this.input = Preconditions.checkNotNull(input); } @@ -158,7 +158,7 @@ public class NormalizedNodeInputStreamReader implements NormalizedNodeStreamRead return leafSetEntryBuilder; } - private NormalizedNode readNodeIdentifierDependentNode(byte nodeType, NodeIdentifier identifier) + private NormalizedNode readNodeIdentifierDependentNode(final byte nodeType, final NodeIdentifier identifier) throws IOException { switch(nodeType) { @@ -369,8 +369,8 @@ public class NormalizedNodeInputStreamReader implements NormalizedNodeStreamRead } @SuppressWarnings("unchecked") - private ListNodeBuilder> addLeafSetChildren(QName nodeType, - ListNodeBuilder> builder) throws IOException { + private ListNodeBuilder> addLeafSetChildren(final QName nodeType, + final ListNodeBuilder> builder) throws IOException { LOG.debug("Reading children of leaf set"); @@ -387,7 +387,7 @@ public class NormalizedNodeInputStreamReader implements NormalizedNodeStreamRead @SuppressWarnings({ "unchecked", "rawtypes" }) private NormalizedNodeContainerBuilder addDataContainerChildren( - NormalizedNodeContainerBuilder builder) throws IOException { + final NormalizedNodeContainerBuilder builder) throws IOException { LOG.debug("Reading data container (leaf nodes) nodes"); NormalizedNode child = readNormalizedNodeInternal();