THRIFT-3157 Make TBase signature more explicit

Client: Java
Patch: Roshan George

This closes #498
This commit is contained in:
Roshan George 2015-05-15 21:52:06 -07:00 committed by Nobuaki Sukegawa
parent 369d62e5e9
commit c2d4c77c5a
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ import org.apache.thrift.protocol.TProtocol;
* Generic base interface for generated Thrift objects. * Generic base interface for generated Thrift objects.
* *
*/ */
public interface TBase<T extends TBase<?,?>, F extends TFieldIdEnum> extends Comparable<T>, Serializable { public interface TBase<T extends TBase<T,F>, F extends TFieldIdEnum> extends Comparable<T>, Serializable {
/** /**
* Reads the TObject from the given input protocol. * Reads the TObject from the given input protocol.

View File

@ -34,7 +34,7 @@ import org.apache.thrift.scheme.SchemeFactory;
import org.apache.thrift.scheme.StandardScheme; import org.apache.thrift.scheme.StandardScheme;
import org.apache.thrift.scheme.TupleScheme; import org.apache.thrift.scheme.TupleScheme;
public abstract class TUnion<T extends TUnion<?,?>, F extends TFieldIdEnum> implements TBase<T, F> { public abstract class TUnion<T extends TUnion<T,F>, F extends TFieldIdEnum> implements TBase<T, F> {
protected Object value_; protected Object value_;
protected F setField_; protected F setField_;