[infinispan-dev] Generify MarshalledEntryImpl ?
Galder Zamarreño
galder at redhat.com
Thu Sep 12 11:09:26 EDT 2013
Hi,
If MarshalledEntry is generalized with <K, V>, shouldn't MarshalledEntryImpl be too?
Imagine I have:
CacheWriter<Integer, String> boundedStore = new SingleFileStore();
Trying to write throws a unchecked assinment warning when it shouldn't since I'm using the <K, V> and types expected by the CacheWriter:
boundedStore.write(new MarshalledEntryImpl(1, "v1", null, getMarshaller()));
Cheers,
--
Galder Zamarreño
galder at redhat.com
twitter.com/galderz
Project Lead, Escalante
http://escalante.io
Engineer, Infinispan
http://infinispan.org
More information about the infinispan-dev
mailing list