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/TField.java b/lib/java/src/protocol/TField.java
index d758c68..50570fb 100644
--- a/lib/java/src/protocol/TField.java
+++ b/lib/java/src/protocol/TField.java
@@ -1,7 +1,5 @@
package com.facebook.thrift.protocol;
-import com.facebook.thrift.types.*;
-
/**
* Helper class that encapsulates field metadata.
*
@@ -10,17 +8,13 @@
public class TField {
public TField() {}
- public TField(String n, TType t, int i) {
- this(n, t, new Int32(i));
- }
-
- public TField(String n, TType t, Int32 i) {
+ public TField(String n, byte t, int i) {
name = n;
type = t;
id = i;
}
public String name = "";
- public TType type = TType.STOP;
- public Int32 id = new Int32();
+ public byte type = TType.STOP;
+ public int id = 0;
}