commit | 503ceaceb002bd7cc526e0261a2a5fe94323967c | [log] [tgz] |
---|---|---|
author | Andreas Wundsam <andreas.wundsam@bigswitch.com> | Thu Nov 07 17:16:49 2013 -0800 |
committer | Andreas Wundsam <andreas.wundsam@bigswitch.com> | Thu Nov 07 17:16:49 2013 -0800 |
tree | ce4ed470b0e6c3ca6d572a0be447977b18d7311c | |
parent | 55dea5f9cf06fcc1083a2c0dc0abe06b825ad69c [diff] |
java_gen: small convenience fix to VlanVid (use int)
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 b63e4dc..8337eb6 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
@@ -30,10 +30,10 @@ this.vid = vid; } - public static VlanVid ofVlan(short vid) { + public static VlanVid ofVlan(int vid) { if ((vid & VALIDATION_MASK) != vid) throw new IllegalArgumentException(String.format("Illegal VLAN value: %x", vid)); - return new VlanVid(vid); + return new VlanVid((short) vid); } /** @return the actual VLAN tag this vid identifies */