Add curly braces to for and if statements.
[controller.git] / opendaylight / networkconfiguration / neutron / implementation / src / main / java / org / opendaylight / controller / networkconfig / neutron / implementation / NeutronPortInterface.java
index eea19776eceaeecec1701d1e1ea0934e9826ac36..273d4209533112d181f106e490a9b459e9477b2a 100644 (file)
@@ -222,10 +222,12 @@ public class NeutronPortInterface implements INeutronPortCRUD {
             NeutronSubnet subnet = systemCRUD.getSubnet(ip.getSubnetUUID());\r
             if (ip.getIpAddress() == null)\r
                 ip.setIpAddress(subnet.getLowAddr());\r
-            if (!ip.getIpAddress().equals(subnet.getGatewayIP()))\r
+            if (!ip.getIpAddress().equals(subnet.getGatewayIP())) {\r
                 subnet.allocateIP(ip.getIpAddress());\r
-            else\r
+            }\r
+            else {\r
                 subnet.setGatewayIPAllocated();\r
+            }\r
             subnet.addPort(input);\r
         }\r
         INeutronNetworkCRUD networkIf = NeutronCRUDInterfaces.getINeutronNetworkCRUD(this);\r
@@ -249,10 +251,12 @@ public class NeutronPortInterface implements INeutronPortCRUD {
         while (fixedIPIterator.hasNext()) {\r
             Neutron_IPs ip = fixedIPIterator.next();\r
             NeutronSubnet subnet = systemCRUD.getSubnet(ip.getSubnetUUID());\r
-            if (!ip.getIpAddress().equals(subnet.getGatewayIP()))\r
+            if (!ip.getIpAddress().equals(subnet.getGatewayIP())) {\r
                 subnet.releaseIP(ip.getIpAddress());\r
-            else\r
+            }\r
+            else {\r
                 subnet.resetGatewayIPAllocated();\r
+            }\r
             subnet.removePort(port);\r
         }\r
         return true;\r