THRIFT-1178. java: Java: TBase signature should be T extends TBase<?,?>
authorBryan Duxbury <bryanduxbury@apache.org>
Mon, 23 May 2011 18:30:06 +0000 (18:30 +0000)
committerBryan Duxbury <bryanduxbury@apache.org>
Mon, 23 May 2011 18:30:06 +0000 (18:30 +0000)
Patch: Ryan Rawson

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1126637 13f79535-47bb-0310-9956-ffa450edef68

lib/java/src/org/apache/thrift/TBase.java

index ee32cca..b3ed1bc 100644 (file)
@@ -27,7 +27,7 @@ import org.apache.thrift.protocol.TProtocol;
  * 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<?,?>, F extends TFieldIdEnum> extends Comparable<T>,  Serializable {
 
   /**
    * Reads the TObject from the given input protocol.