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 / fromxml / ArrayAttributeReadingStrategy.java
index f2a67cce45bca9c847fd6f8779f07b10e4357f6a..8887fbd0881ef3b43ffd6cc5da66a42f6cb502a4 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,
@@ -26,17 +26,18 @@ public class ArrayAttributeReadingStrategy extends AbstractAttributeReadingStrat
     @Override
     AttributeConfigElement readElementHook(final List<XmlElement> configNodes) throws DocumentedException {
         List<Object> innerList = Lists.newArrayList();
-        EditStrategyType innerEditStrategy= null;
+        EditStrategyType innerEditStrategy = null;
         for (XmlElement configNode : configNodes) {
-            final AttributeConfigElement attributeConfigElement = innerStrategy.readElement(Lists.newArrayList(configNode));
-            if(attributeConfigElement.getEditStrategy().isPresent()) {
+            final AttributeConfigElement attributeConfigElement = innerStrategy
+                    .readElement(Lists.newArrayList(configNode));
+            if (attributeConfigElement.getEditStrategy().isPresent()) {
                 // TODO this sets the last operation for the entire array
                 innerEditStrategy = attributeConfigElement.getEditStrategy().get();
             }
             innerList.add(attributeConfigElement.getValue());
         }
-        return innerEditStrategy == null ? AttributeConfigElement.create(getNullableDefault(), innerList) :
-                AttributeConfigElement.create(getNullableDefault(), innerList, innerEditStrategy);
+        return innerEditStrategy == null ? AttributeConfigElement.create(getNullableDefault(), innerList)
+                AttributeConfigElement.create(getNullableDefault(), innerList, innerEditStrategy);
     }
 
 }