mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 10:48:51 +00:00
THRIFT-3157 Make TBase signature more explicit
Client: Java Patch: Roshan George This closes #498
This commit is contained in:
parent
369d62e5e9
commit
c2d4c77c5a
@ -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.
|
||||||
|
@ -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_;
|
||||||
|
Loading…
Reference in New Issue
Block a user