X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fconfig%2Fconfig-manager-facade-xml%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fconfig%2Ffacade%2Fxml%2Fmapping%2Fattributes%2FAttributeIfcSwitchStatement.java;fp=opendaylight%2Fconfig%2Fconfig-manager-facade-xml%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fconfig%2Ffacade%2Fxml%2Fmapping%2Fattributes%2FAttributeIfcSwitchStatement.java;h=9c2aaeda499b572a563ad38d8457266fc8c5a07d;hb=e331fa568ee0b7a33ec451a104123bcbf7d86e78;hp=8ee33c96504945494b48bc63bdef94edb3efe2c0;hpb=cbcc2b61265e903959f11d44c292771e76b3926e;p=controller.git diff --git a/opendaylight/config/config-manager-facade-xml/src/main/java/org/opendaylight/controller/config/facade/xml/mapping/attributes/AttributeIfcSwitchStatement.java b/opendaylight/config/config-manager-facade-xml/src/main/java/org/opendaylight/controller/config/facade/xml/mapping/attributes/AttributeIfcSwitchStatement.java index 8ee33c9650..9c2aaeda49 100644 --- a/opendaylight/config/config-manager-facade-xml/src/main/java/org/opendaylight/controller/config/facade/xml/mapping/attributes/AttributeIfcSwitchStatement.java +++ b/opendaylight/config/config-manager-facade-xml/src/main/java/org/opendaylight/controller/config/facade/xml/mapping/attributes/AttributeIfcSwitchStatement.java @@ -24,7 +24,7 @@ public abstract class AttributeIfcSwitchStatement { private AttributeIfc lastAttribute; - public T switchAttribute(AttributeIfc attributeIfc) { + public T switchAttribute(final AttributeIfc attributeIfc) { this.lastAttribute = attributeIfc; @@ -43,7 +43,7 @@ public abstract class AttributeIfcSwitchStatement { } else { return caseJavaAttribute(openType); } - } catch (UnknownOpenTypeException e) { + } catch (final UnknownOpenTypeException e) { throw getIllegalArgumentException(attributeIfc); } @@ -64,28 +64,28 @@ public abstract class AttributeIfcSwitchStatement { return lastAttribute; } - protected T caseJavaIdentityRefAttribute(OpenType openType) { + protected T caseJavaIdentityRefAttribute(final OpenType openType) { return caseJavaAttribute(openType); } - protected T caseJavaUnionAttribute(OpenType openType) { + protected T caseJavaUnionAttribute(final OpenType openType) { return caseJavaAttribute(openType); } - protected T caseJavaEnumAttribute(OpenType openType) { + protected T caseJavaEnumAttribute(final OpenType openType) { return caseJavaAttribute(openType); } - protected T caseJavaBinaryAttribute(OpenType openType) { + protected T caseJavaBinaryAttribute(final OpenType openType) { return caseJavaAttribute(openType); } - private IllegalArgumentException getIllegalArgumentException(AttributeIfc attributeIfc) { + private IllegalArgumentException getIllegalArgumentException(final AttributeIfc attributeIfc) { return new IllegalArgumentException("Unknown attribute type " + attributeIfc.getClass() + ", " + attributeIfc + " with open type:" + attributeIfc.getOpenType()); } - public final T caseJavaAttribute(OpenType openType) { + public final T caseJavaAttribute(final OpenType openType) { if (openType instanceof SimpleType) { return caseJavaSimpleAttribute((SimpleType) openType); } else if (openType instanceof ArrayType) { @@ -114,7 +114,7 @@ public abstract class AttributeIfcSwitchStatement { private static class UnknownOpenTypeException extends RuntimeException { private static final long serialVersionUID = 1L; - public UnknownOpenTypeException(String message) { + public UnknownOpenTypeException(final String message) { super(message); } }