diff options
author | Marek Gradzki <mgradzki@cisco.com> | 2018-04-10 07:10:53 +0200 |
---|---|---|
committer | Marek Gradzki <mgradzki@cisco.com> | 2018-04-10 07:10:59 +0200 |
commit | 7cde100cc6e732b0ff335e6f3de66d97544d06da (patch) | |
tree | b423731d3041430d21419c61d68d565d08fd21e1 /infra/data-impl/src | |
parent | 023dc70e4c10ccba8b4676687d6629a93aa9f058 (diff) |
Fix various Sonar warnings
Change-Id: I0883042a80525b72f33e66fdb0d5b9e600dcc713
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'infra/data-impl/src')
-rw-r--r-- | infra/data-impl/src/main/java/io/fd/honeycomb/data/impl/ModificationDiff.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/infra/data-impl/src/main/java/io/fd/honeycomb/data/impl/ModificationDiff.java b/infra/data-impl/src/main/java/io/fd/honeycomb/data/impl/ModificationDiff.java index 98950b243..210408e39 100644 --- a/infra/data-impl/src/main/java/io/fd/honeycomb/data/impl/ModificationDiff.java +++ b/infra/data-impl/src/main/java/io/fd/honeycomb/data/impl/ModificationDiff.java @@ -146,12 +146,12 @@ final class ModificationDiff { final AbstractImmutableDataContainerNode<YangInstanceIdentifier.PathArgument> parentContainerNode = (AbstractImmutableDataContainerNode) parentData; - final Map<YangInstanceIdentifier, NormalizedNodeUpdate> updates = + final Map<YangInstanceIdentifier, NormalizedNodeUpdate> childUpdates = parentContainerNode.getChildren().entrySet().stream() .flatMap(entry -> registry.normalizedUpdates(modification.getId(), entry).stream()) .collect(Collectors.toMap(NormalizedNodeUpdate::getId, update -> update)); - return new ModificationDiff(updates); + return new ModificationDiff(childUpdates); } } return EMPTY_DIFF; |