Java Thrift libraries no longer use specially defined UInt32 etc. classes
Summary: There was really no need for these now that we are getting rid of unsigned, they should all just use the builtin int and long types
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664741 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/java/src/protocol/TMap.java b/lib/java/src/protocol/TMap.java
index f251fa6..e8d18e1 100644
--- a/lib/java/src/protocol/TMap.java
+++ b/lib/java/src/protocol/TMap.java
@@ -1,7 +1,5 @@
package com.facebook.thrift.protocol;
-import com.facebook.thrift.types.*;
-
/**
* Helper class that encapsulates map metadata.
*
@@ -10,17 +8,13 @@
public class TMap {
public TMap() {}
- public TMap(TType k, TType v, int s) {
- this(k, v, new Int32(s));
- }
-
- public TMap(TType k, TType v, Int32 s) {
+ public TMap(byte k, byte v, int s) {
keyType = k;
valueType = v;
size = s;
}
- public TType keyType = TType.STOP;
- public TType valueType = TType.STOP;
- public Int32 size = new Int32();;
+ public byte keyType = TType.STOP;
+ public byte valueType = TType.STOP;
+ public int size = 0;
}