[infinispan-dev] Generics usage in org.infinispan.util.ClassFinder

Emmanuel Bernard emmanuel at hibernate.org
Wed Oct 7 06:11:43 EDT 2009


Class<?> is the closest equivalent to Class. It adds no burden at all  
(people can still use the raw type if they wish to stay in the pre-5  
era). And literally Class<?> means what you've described: "we can't  
say anything about the Class type returned"

On 7 oct. 09, at 12:02, Galder Zamarreno wrote:

> Hi,
>
> I'm a bit concerned about the usage of Class<?> in
> org.infinispan.util.ClassFinder because in pretty much all those
> methods, we can't say anything about the Class type returned and by
> keeping Class<?>, you're forcing clients to deal with generics that
> don't add anything.
>
> Thoughts?
> -- 
> Galder Zamarreño
> Sr. Software Engineer
> Infinispan, JBoss Cache
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev





More information about the infinispan-dev mailing list