commit | 329f2b088a3d2b01b7a1db0bdb108482d4870fff | [log] [tgz] |
---|---|---|
author | Yotam Harchol <yotam.harchol@bigswitch.com> | Wed Sep 11 15:05:26 2013 -0700 |
committer | Yotam Harchol <yotam.harchol@bigswitch.com> | Wed Sep 11 15:05:26 2013 -0700 |
tree | ee2c4f3b307060078bea939027cc898cdd68f529 | |
parent | 0936bfbd47469cf44734e0f207493151a678f457 [diff] |
Trivial fixes in the value types VlanVid, VlanPcp - NO_MASK constants were created wrongly and caused an exception.
diff --git a/java_gen/pre-written/src/main/java/org/projectfloodlight/openflow/types/VlanPcp.java b/java_gen/pre-written/src/main/java/org/projectfloodlight/openflow/types/VlanPcp.java index 9b5ef11..ee7d06c 100644 --- a/java_gen/pre-written/src/main/java/org/projectfloodlight/openflow/types/VlanPcp.java +++ b/java_gen/pre-written/src/main/java/org/projectfloodlight/openflow/types/VlanPcp.java
@@ -10,7 +10,7 @@ private final byte pcp; - public static final VlanPcp NO_MASK = VlanPcp.of((byte)0xFF); + public static final VlanPcp NO_MASK = new VlanPcp((byte)0xFF); public static final VlanPcp FULL_MASK = VlanPcp.of((byte)0x0); private VlanPcp(byte pcp) {
diff --git a/java_gen/pre-written/src/main/java/org/projectfloodlight/openflow/types/VlanVid.java b/java_gen/pre-written/src/main/java/org/projectfloodlight/openflow/types/VlanVid.java index 705464c..63b8831 100644 --- a/java_gen/pre-written/src/main/java/org/projectfloodlight/openflow/types/VlanVid.java +++ b/java_gen/pre-written/src/main/java/org/projectfloodlight/openflow/types/VlanVid.java
@@ -8,7 +8,7 @@ private static final short VALIDATION_MASK = 0x0FFF; final static int LENGTH = 2; - public static final VlanVid NO_MASK = VlanVid.of((short)0xFFFF); + public static final VlanVid NO_MASK = new VlanVid((short)0xFFFF); public static final VlanVid FULL_MASK = VlanVid.of((short)0x0); private final short vid;