Fix odlparent 3 Checkstyle issues
[groupbasedpolicy.git] / neutron-mapper / src / main / java / org / opendaylight / groupbasedpolicy / neutron / mapper / mapping / rule / SecRuleEntityDecoder.java
index 6fe1d1ebe5e9971ca83c48dd11ebd77e06b2b932..d798032ccbbc1b78d7ba7436695c5d4eb90bdcbc 100755 (executable)
@@ -11,10 +11,8 @@ package org.opendaylight.groupbasedpolicy.neutron.mapper.mapping.rule;
 import static com.google.common.base.Preconditions.checkNotNull;
 
 import com.google.common.collect.ImmutableList;
-
 import java.util.ArrayList;
 import java.util.List;
-
 import org.opendaylight.groupbasedpolicy.api.sf.EtherTypeClassifierDefinition;
 import org.opendaylight.groupbasedpolicy.api.sf.IpProtoClassifierDefinition;
 import org.opendaylight.groupbasedpolicy.api.sf.L4ClassifierDefinition;
@@ -59,7 +57,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.constants.rev150712
 import org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.secgroups.rev150712.SecurityRuleAttributes;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.secgroups.rev150712.security.rules.attributes.security.rules.SecurityRule;
 
-public class SecRuleEntityDecoder {
+public final class SecRuleEntityDecoder {
 
     private SecRuleEntityDecoder() {
         throw new UnsupportedOperationException("Cannot create an instance.");
@@ -217,8 +215,8 @@ public class SecRuleEntityDecoder {
         if (twoPortMin == null && twoPortMax == null) {
             return true;
         }
-        if ((onePortMin != null && twoPortMin != null && onePortMin >= twoPortMin)
-                && (onePortMax != null && twoPortMax != null && onePortMax <= twoPortMax)) {
+        if (onePortMin != null && twoPortMin != null && onePortMin >= twoPortMin
+                && onePortMax != null && twoPortMax != null && onePortMax <= twoPortMax) {
             return true;
         }
         return false;