We do not need to go through the entryset -- just use Map.values(),
eliminating the need for one object indirection.
Change-Id: I5a5226d4b6b256d998e0a30de52bc89e01d1a16d
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
// Adds leaves to mapping
final Builder<String, ValueNodeCodecContext> leafChildBuilder =
ImmutableMap.builderWithExpectedSize(tmpLeaves.size());
- for (final Entry<Method, ValueNodeCodecContext> entry : tmpLeaves.entrySet()) {
- final ValueNodeCodecContext leaf = entry.getValue();
+ for (final ValueNodeCodecContext leaf : tmpLeaves.values()) {
leafChildBuilder.put(leaf.getSchema().getQName().getLocalName(), leaf);
byYangBuilder.put(leaf.getDomPathArgument(), leaf);
}