commit | 8ad8699afe69171234fef1f2a176a6a20771bdfc | [log] [tgz] |
---|---|---|
author | Andreas Wundsam <andreas.wundsam@bigswitch.com> | Fri May 09 16:33:28 2014 -0700 |
committer | Andreas Wundsam <andreas.wundsam@bigswitch.com> | Fri May 09 16:35:39 2014 -0700 |
tree | 8976449f1276bb299c7b92b33a93bf5e96f7ea34 | |
parent | 5c411dfa7f649b4a50e95fbde586244ac7b4b1c7 [diff] [blame] |
java_gen/U* types: change toString to hex We mostly use the U* classes to represent non-numeric data. Hex strings seem like a more useful representation.
diff --git a/java_gen/pre-written/src/main/java/org/projectfloodlight/openflow/types/U16.java b/java_gen/pre-written/src/main/java/org/projectfloodlight/openflow/types/U16.java index 9de7e14..6c4ac11 100644 --- a/java_gen/pre-written/src/main/java/org/projectfloodlight/openflow/types/U16.java +++ b/java_gen/pre-written/src/main/java/org/projectfloodlight/openflow/types/U16.java
@@ -63,7 +63,7 @@ @Override public String toString() { - return Integer.toString(f(raw)); + return String.format("0x%04x", raw); } @Override