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/TSet.java b/lib/java/src/protocol/TSet.java
index fa6e24d..542f3f5 100644
--- a/lib/java/src/protocol/TSet.java
+++ b/lib/java/src/protocol/TSet.java
@@ -1,7 +1,5 @@
package com.facebook.thrift.protocol;
-import com.facebook.thrift.types.*;
-
/**
* Helper class that encapsulates set metadata.
*
@@ -10,15 +8,11 @@
public class TSet {
public TSet() {}
- public TSet(TType t, int s) {
- this(t, new Int32(s));
- }
-
- public TSet(TType t, Int32 s) {
+ public TSet(byte t, int s) {
elemType = t;
size = s;
}
- public TType elemType = TType.STOP;
- public Int32 size = new Int32();
+ public byte elemType = TType.STOP;
+ public int size = 0;
}