Skip to content

Commit

Permalink
#12999 - SonarQube review
Browse files Browse the repository at this point in the history
  • Loading branch information
acurionedotcms committed Dec 19, 2017
1 parent c9af442 commit 7b45759
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,8 @@ private void saveContainerStructures (ActionRequest req, Container currentContai
}

//Delete MultiTree for old / unused ContainerStructures
final Map<String, Object> newContainerStructures = csList.stream().collect(Collectors.toMap(cs -> cs.getStructureId(), cs -> cs));
final Map<String, Object> newContainerStructures = csList.stream().collect(
Collectors.toMap(ContainerStructure::getStructureId, (ContainerStructure cs) -> cs));
for (ContainerStructure oldCS : oldContainerStructures) {

if (!newContainerStructures.containsKey(oldCS.getStructureId())) {
Expand Down

0 comments on commit 7b45759

Please sign in to comment.