Thrift: getting rid of U32s for map/list/set/string lengths and field ids etc.
Summary: U32s are on the out. Make way for the I32.
Reviewed By: aditya
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664718 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/java/src/protocol/TMap.java b/lib/java/src/protocol/TMap.java
index 84eb468..f251fa6 100644
--- a/lib/java/src/protocol/TMap.java
+++ b/lib/java/src/protocol/TMap.java
@@ -11,10 +11,10 @@
public TMap() {}
public TMap(TType k, TType v, int s) {
- this(k, v, new UInt32(s));
+ this(k, v, new Int32(s));
}
- public TMap(TType k, TType v, UInt32 s) {
+ public TMap(TType k, TType v, Int32 s) {
keyType = k;
valueType = v;
size = s;
@@ -22,5 +22,5 @@
public TType keyType = TType.STOP;
public TType valueType = TType.STOP;
- public UInt32 size = new UInt32();;
+ public Int32 size = new Int32();;
}