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%2FSimpleAttributeReadingStrategy.java;fp=opendaylight%2Fconfig%2Fconfig-manager-facade-xml%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fconfig%2Ffacade%2Fxml%2Fmapping%2Fattributes%2Ffromxml%2FSimpleAttributeReadingStrategy.java;h=db2d9c1d1ee3694a20cdd565884812a4c3d5ca24;hp=0fa0358cb11f723fe652c7a3cd325f64e8daac7e;hb=e331fa568ee0b7a33ec451a104123bcbf7d86e78;hpb=cbcc2b61265e903959f11d44c292771e76b3926e diff --git a/opendaylight/config/config-manager-facade-xml/src/main/java/org/opendaylight/controller/config/facade/xml/mapping/attributes/fromxml/SimpleAttributeReadingStrategy.java b/opendaylight/config/config-manager-facade-xml/src/main/java/org/opendaylight/controller/config/facade/xml/mapping/attributes/fromxml/SimpleAttributeReadingStrategy.java index 0fa0358cb1..db2d9c1d1e 100644 --- a/opendaylight/config/config-manager-facade-xml/src/main/java/org/opendaylight/controller/config/facade/xml/mapping/attributes/fromxml/SimpleAttributeReadingStrategy.java +++ b/opendaylight/config/config-manager-facade-xml/src/main/java/org/opendaylight/controller/config/facade/xml/mapping/attributes/fromxml/SimpleAttributeReadingStrategy.java @@ -14,12 +14,12 @@ import org.opendaylight.controller.config.util.xml.DocumentedException; import org.opendaylight.controller.config.util.xml.XmlElement; public class SimpleAttributeReadingStrategy extends AbstractAttributeReadingStrategy { - public SimpleAttributeReadingStrategy(String nullableDefault) { + public SimpleAttributeReadingStrategy(final String nullableDefault) { super(nullableDefault); } @Override - AttributeConfigElement readElementHook(List configNodes) throws DocumentedException { + AttributeConfigElement readElementHook(final List configNodes) throws DocumentedException { XmlElement xmlElement = configNodes.get(0); Preconditions.checkState(configNodes.size() == 1, "This element should be present only once " + xmlElement + " but was " + configNodes.size()); @@ -29,16 +29,16 @@ public class SimpleAttributeReadingStrategy extends AbstractAttributeReadingStra postprocessParsedValue(textContent)); } - protected String readElementContent(XmlElement xmlElement) throws DocumentedException { + protected String readElementContent(final XmlElement xmlElement) throws DocumentedException { return xmlElement.getTextContent(); } @Override - protected Object postprocessNullableDefault(String nullableDefault) { + protected Object postprocessNullableDefault(final String nullableDefault) { return nullableDefault; } - protected Object postprocessParsedValue(String textContent) { + protected Object postprocessParsedValue(final String textContent) { return textContent; }