X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=openflow-protocol-impl%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fopenflowjava%2Fprotocol%2Fimpl%2Fcore%2FOFVersionDetector.java;h=9026dcc68d957b0b3cc323b7462896c5880d6f94;hb=608331f22077157e3d006e336313ed6323a91e56;hp=bfa21900f647e7ca21186a302dbe48b6c23788e5;hpb=b0c862db7ff00227cc2f1bf23fad7b4c96d08493;p=openflowjava.git diff --git a/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/core/OFVersionDetector.java b/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/core/OFVersionDetector.java index bfa21900..9026dcc6 100644 --- a/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/core/OFVersionDetector.java +++ b/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/core/OFVersionDetector.java @@ -7,6 +7,7 @@ import io.netty.handler.codec.ByteToMessageDecoder; import java.util.List; +import org.opendaylight.openflowjava.protocol.impl.util.EncodeConstants; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -17,9 +18,9 @@ import org.slf4j.LoggerFactory; public class OFVersionDetector extends ByteToMessageDecoder { /** Version number of OpenFlow 1.0 protocol */ - public static final byte OF10_VERSION_ID = 0x01; + private static final byte OF10_VERSION_ID = EncodeConstants.OF10_VERSION_ID; /** Version number of OpenFlow 1.3 protocol */ - public static final byte OF13_VERSION_ID = 0x04; + private static final byte OF13_VERSION_ID = EncodeConstants.OF13_VERSION_ID; private static final Logger LOGGER = LoggerFactory.getLogger(OFVersionDetector.class); /**