Fix checkstyle issues to enforce it
[controller.git] / opendaylight / config / config-manager-facade-xml / src / main / java / org / opendaylight / controller / config / facade / xml / mapping / attributes / resolving / EnumAttributeResolvingStrategy.java
index 7a66e421cf435053348e95a5c8f1886b05991bf1..4d426b59cc23ce65ad8b2b48173920c5c1447975 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015 Cisco Systems, Inc. and others.  All rights reserved.
+ * Copyright (c) 2015, 2017 Cisco Systems, Inc. and others.  All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
@@ -38,18 +38,18 @@ final class EnumAttributeResolvingStrategy extends AbstractAttributeResolvingStr
         if (value == null) {
             return Optional.absent();
         }
-
         Util.checkType(value, Map.class);
         Map<?, ?> valueMap = (Map<?, ?>) value;
-        Preconditions.checkArgument(valueMap.size() == 1, "Unexpected value size " + value + " should be just 1 foe enum");
+        Preconditions.checkArgument(valueMap.size() == 1,
+                "Unexpected value size " + value + " should be just 1 foe enum");
         final Object innerValue = valueMap.values().iterator().next();
         Util.checkType(innerValue, String.class);
 
         final String className = getOpenType().getTypeName();
-        final Object parsedValue = enumResolver.fromYang(className, ((String) innerValue));
+        final Object parsedValue = enumResolver.fromYang(className, (String) innerValue);
 
-        LOG.debug("Attribute {} : {} parsed to enum type {} with value {}", attrName, innerValue, getOpenType(), parsedValue);
+        LOG.debug("Attribute {} : {} parsed to enum type {} with value {}", attrName, innerValue, getOpenType(),
+                parsedValue);
         return Optional.of(parsedValue);
     }
-
 }