uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörn Kottmann <kottm...@gmail.com>
Subject Re: generics: CasManager.getCasInterface
Date Fri, 21 Aug 2009 11:48:18 GMT
Jörn Kottmann wrote:
> Right now its declared as
>
> AbstractCas getCasInterface(CAS cas, Class<? extends AbstractCas> 
> requiredInterface);
>
> but I think it should be
>
> <T extends AbstractCas> T getCasInterface(CAS cas, Class<? extends 
> AbstractCas> requiredInterface);
ups, it  must be:

<T extends AbstractCas> T getCasInterface(CAS cas, Class<T> 
requiredInterface);

Mime
View raw message