Skip to content
Browse files
Initialize Map on instantiation.
  • Loading branch information
garydgregory committed Nov 20, 2020
1 parent 4b411bc commit a723678e82c46cfed968c3ff546864523e0f3720
Showing 1 changed file with 1 addition and 2 deletions.
@@ -95,8 +95,7 @@ public ImmutableNode combine(final ImmutableNode node1, final ImmutableNode node
protected void addAttributes(final ImmutableNode.Builder result, final ImmutableNode node1,
final ImmutableNode node2)
final Map<String, Object> attributes = new HashMap<>();
final Map<String, Object> attributes = new HashMap<>(node1.getAttributes());
for (final Map.Entry<String, Object> e : node2.getAttributes().entrySet())
if (!attributes.containsKey(e.getKey()))

0 comments on commit a723678

Please sign in to comment.