X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=third-party%2Fopenflowj%2Fsrc%2Fmain%2Fjava%2Forg%2Fopenflow%2Fprotocol%2Faction%2FActionVendorOutputNextHop.java;h=f26ca51a790cc3439b024949e4f3920991a65831;hb=33a40451c53d0cbf66407bd3e217baf904aa7088;hp=d5e5ab05463eac633e627cdd506909749a0708ca;hpb=42210c03b0a4c54706320ba9f55794c0abd4d201;p=controller.git diff --git a/third-party/openflowj/src/main/java/org/openflow/protocol/action/ActionVendorOutputNextHop.java b/third-party/openflowj/src/main/java/org/openflow/protocol/action/ActionVendorOutputNextHop.java index d5e5ab0546..f26ca51a79 100644 --- a/third-party/openflowj/src/main/java/org/openflow/protocol/action/ActionVendorOutputNextHop.java +++ b/third-party/openflowj/src/main/java/org/openflow/protocol/action/ActionVendorOutputNextHop.java @@ -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() {