From 7cde100cc6e732b0ff335e6f3de66d97544d06da Mon Sep 17 00:00:00 2001 From: Marek Gradzki Date: Tue, 10 Apr 2018 07:10:53 +0200 Subject: Fix various Sonar warnings Change-Id: I0883042a80525b72f33e66fdb0d5b9e600dcc713 Signed-off-by: Marek Gradzki --- .../src/main/java/io/fd/honeycomb/data/impl/ModificationDiff.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'infra/data-impl/src/main/java') 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 parentContainerNode = (AbstractImmutableDataContainerNode) parentData; - final Map updates = + final Map 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; -- cgit 1.2.3-korg