apply checkstyle check during build for neutron-mapper
[groupbasedpolicy.git] / neutron-mapper / src / main / java / org / opendaylight / groupbasedpolicy / neutron / mapper / mapping / rule / SingleClassifierRule.java
index d17f1c9f5dd9e01171ec7d062c620bc50e639a45..1ae414403dc19d2d94ad3c7b916080a903e83ad6 100644 (file)
@@ -8,6 +8,9 @@
 
 package org.opendaylight.groupbasedpolicy.neutron.mapper.mapping.rule;
 
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.collect.ImmutableList;
+
 import java.util.List;
 
 import javax.annotation.concurrent.Immutable;
@@ -24,9 +27,6 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.policy.rev
 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.policy.rev140421.tenants.tenant.policy.subject.feature.instances.ClassifierInstance;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.secgroups.rev150712.security.rules.attributes.security.rules.SecurityRule;
 
-import com.google.common.annotations.VisibleForTesting;
-import com.google.common.collect.ImmutableList;
-
 @Immutable
 public class SingleClassifierRule {
 
@@ -110,14 +110,14 @@ public class SingleClassifierRule {
 
     private static boolean isRangePortParam(ParameterValue pv) {
         String pvName = pv.getName().getValue();
-        return pv.getRangeValue() != null
-                && (pvName.equals(L4ClassifierDefinition.SRC_PORT_RANGE_PARAM) || pvName.equals(L4ClassifierDefinition.DST_PORT_RANGE_PARAM));
+        return pv.getRangeValue() != null && (pvName.equals(L4ClassifierDefinition.SRC_PORT_RANGE_PARAM)
+            || pvName.equals(L4ClassifierDefinition.DST_PORT_RANGE_PARAM));
     }
 
     private static boolean isSrcOrDstPortParam(ParameterValue pv) {
         String pvName = pv.getName().getValue();
-        return pv.getIntValue() != null
-                && (pvName.equals(L4ClassifierDefinition.SRC_PORT_PARAM) || pvName.equals(L4ClassifierDefinition.DST_PORT_PARAM));
+        return pv.getIntValue() != null && (pvName.equals(L4ClassifierDefinition.SRC_PORT_PARAM)
+            || pvName.equals(L4ClassifierDefinition.DST_PORT_PARAM));
     }
 
 }