reloadAllAugmentations() does not need the key, hence we do not
need to instantiate entrySet(), values() is sufficient.
Change-Id: Ib58b5fac547370709ab916ca5f700bc4b841efb8
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
@SuppressFBWarnings("RV_RETURN_VALUE_OF_PUTIFABSENT_IGNORED")
private void reloadAllAugmentations() {
@SuppressFBWarnings("RV_RETURN_VALUE_OF_PUTIFABSENT_IGNORED")
private void reloadAllAugmentations() {
- for (final Entry<AugmentationIdentifier, Type> augment : possibleAugmentations.entrySet()) {
- final DataContainerCodecPrototype<?> augProto = getAugmentationPrototype(augment.getValue());
+ for (final Type augment : possibleAugmentations.values()) {
+ final DataContainerCodecPrototype<?> augProto = getAugmentationPrototype(augment);
if (augProto != null) {
byYangAugmented.putIfAbsent(augProto.getYangArg(), augProto);
byStreamAugmented.putIfAbsent(augProto.getBindingClass(), augProto);
if (augProto != null) {
byYangAugmented.putIfAbsent(augProto.getYangArg(), augProto);
byStreamAugmented.putIfAbsent(augProto.getBindingClass(), augProto);