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 / AbstractAttributeReadingStrategy.java
index d0642944a6f1ae04e9f2a495a5cddd32ce28379a..4920cc563a283ef65d31da0a6b535ec0ca9c3b84 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,7 +26,7 @@ public abstract class AbstractAttributeReadingStrategy implements AttributeReadi
 
     @Override
     public AttributeConfigElement readElement(final List<XmlElement> configNodes) throws DocumentedException {
-        if (configNodes.size() == 0){
+        if (configNodes.isEmpty()) {
             return AttributeConfigElement.createNullValue(postprocessNullableDefault(nullableDefault));
         }
         return readElementHook(configNodes);