generics: CasManager.getCasInterface

2009-08-21 Thread Jörn Kottmann

Right now its declared as

AbstractCas getCasInterface(CAS cas, Class 
requiredInterface);


but I think it should be

 T getCasInterface(CAS cas, ClassAbstractCas> requiredInterface);


I will change it if there are no objections.

Jörn


Re: generics: CasManager.getCasInterface

2009-08-21 Thread Jörn Kottmann

Jörn Kottmann wrote:

Right now its declared as

AbstractCas getCasInterface(CAS cas, Class 
requiredInterface);


but I think it should be

 T getCasInterface(CAS cas, ClassAbstractCas> requiredInterface);

ups, it  must be:

 T getCasInterface(CAS cas, Class 
requiredInterface);


Re: generics: CasManager.getCasInterface

2009-08-21 Thread Adam Lally
On Fri, Aug 21, 2009 at 7:48 AM, Jörn Kottmann wrote:
> Jörn Kottmann wrote:
>>
>> Right now its declared as
>>
>> AbstractCas getCasInterface(CAS cas, Class
>> requiredInterface);
>>
>> but I think it should be
>>
>>  T getCasInterface(CAS cas, Class> AbstractCas> requiredInterface);
>
> ups, it  must be:
>
>  T getCasInterface(CAS cas, Class
> requiredInterface);
>

Looks right.
  -Adam


Re: generics: CasManager.getCasInterface

2009-08-22 Thread Marshall Schor


Adam Lally wrote:
> On Fri, Aug 21, 2009 at 7:48 AM, Jörn Kottmann wrote:
>   
>> Jörn Kottmann wrote:
>> 
>>> Right now its declared as
>>>
>>> AbstractCas getCasInterface(CAS cas, Class
>>> requiredInterface);
>>>
>>> but I think it should be
>>>
>>>  T getCasInterface(CAS cas, Class>> AbstractCas> requiredInterface);
>>>   
>> ups, it  must be:
>>
>>  T getCasInterface(CAS cas, Class
>> requiredInterface);
>>
>> 
>
> Looks right.
>   -Adam
>   
+1   Marshall
>
>