Add curly braces to if/else statements. (sonar)
[controller.git] / third-party / openflowj / src / main / java / org / openflow / protocol / action / ActionVendorOutputNextHop.java
index d5e5ab05463eac633e627cdd506909749a0708ca..f26ca51a790cc3439b024949e4f3920991a65831 100644 (file)
@@ -74,11 +74,12 @@ import org.openflow.util.HexString;
                
                public void setNextHop(InetAddress address) {
                        short actionLen;
-                       if (address instanceof Inet4Address) 
-                               actionLen = (short)ONHLength.ONH_LEN_IPV4.getValue();
-                       else
-                               actionLen = (short)ONHLength.ONH_LEN_IPV6.getValue();
-                       super.setLength(actionLen);
+                       if (address instanceof Inet4Address) {
+                actionLen = (short)ONHLength.ONH_LEN_IPV4.getValue();
+            } else {
+                actionLen = (short)ONHLength.ONH_LEN_IPV6.getValue();
+            }
+            super.setLength(actionLen);
                        this.address = address;
                }
                public InetAddress getNextHop() {