resurrecting this: https://issues.jboss.org/browse/ISPN-3667
On Sep 18, 2013, at 1:36 PM, Manik Surtani <[email protected]> wrote: > > On 17 Sep 2013, at 16:46, Galder ZamarreƱo <[email protected]> wrote: > >> Hi, >> >> Doing this throws a warning due to unchecked assignment: >> >> ExternalStore<Integer, String> boundedStore = new SingleFileStore(); >> >> Granted, the users won't be doing this, but should all cache stores use >> generics properly? At the end of the day, implementations such as >> SingleFileStore are what cache store developers are gonna be looking at to >> get inspiration of how to write cache stores. >> >> I'm aware that some of the internals assume Object keys and values, and >> there will be a point where an unchecked cast will need to be done, but this >> should happen within the internals of our cache implementation. > > Yup. > >> >> Cache store implementations should use generics properly. > > +1 > >> >> Cheers, >> >> p.s. Or maybe we should move to language were generics are properly enforced >> ;) > > .NET? ;) > > -- > Manik Surtani > > > > > _______________________________________________ > infinispan-dev mailing list > [email protected] > https://lists.jboss.org/mailman/listinfo/infinispan-dev Cheers, -- Mircea Markus Infinispan lead (www.infinispan.org) _______________________________________________ infinispan-dev mailing list [email protected] https://lists.jboss.org/mailman/listinfo/infinispan-dev
