X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fconfig%2Fconfig-manager-facade-xml%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fconfig%2Ffacade%2Fxml%2Fmapping%2Fattributes%2Ffromxml%2FSimpleCompositeAttributeReadingStrategy.java;h=764629bf7c8e8faa24670e954922516eaf58e59e;hp=211dba990d551141c7099d4eb4f4fe5ef4d84053;hb=f43b01b81319959b1907e3e04537f5169e7f33d8;hpb=23fe9ca678ada6263fec5dd996f4025e4a32fcf5 diff --git a/opendaylight/config/config-manager-facade-xml/src/main/java/org/opendaylight/controller/config/facade/xml/mapping/attributes/fromxml/SimpleCompositeAttributeReadingStrategy.java b/opendaylight/config/config-manager-facade-xml/src/main/java/org/opendaylight/controller/config/facade/xml/mapping/attributes/fromxml/SimpleCompositeAttributeReadingStrategy.java index 211dba990d..764629bf7c 100644 --- a/opendaylight/config/config-manager-facade-xml/src/main/java/org/opendaylight/controller/config/facade/xml/mapping/attributes/fromxml/SimpleCompositeAttributeReadingStrategy.java +++ b/opendaylight/config/config-manager-facade-xml/src/main/java/org/opendaylight/controller/config/facade/xml/mapping/attributes/fromxml/SimpleCompositeAttributeReadingStrategy.java @@ -15,20 +15,20 @@ public class SimpleCompositeAttributeReadingStrategy extends SimpleAttributeRead private final String key; - public SimpleCompositeAttributeReadingStrategy(String nullableDefault, String key) { + public SimpleCompositeAttributeReadingStrategy(final String nullableDefault, final String key) { super(nullableDefault); this.key = key; } @Override - protected Object postprocessParsedValue(String textContent) { + protected Object postprocessParsedValue(final String textContent) { HashMap map = Maps.newHashMap(); map.put(key, textContent); return map; } @Override - protected Object postprocessNullableDefault(String nullableDefault) { + protected Object postprocessNullableDefault(final String nullableDefault) { return nullableDefault == null ? null : postprocessParsedValue(nullableDefault); } }