Re: [lang] SerializationUtils and generics

2012-04-06 Thread Gary Gregory
On Fri, Apr 6, 2012 at 12:44 PM, sebb wrote: > On 5 April 2012 16:38, Jörg Schaible wrote: > > Hi Gary, > > > > Gary Gregory wrote: > > > >> Hi All: > >> > >> I'd like to propose the change below. This lets you get rid of type > casts > >> in call sites. You'll still get a ClassCastException if

Re: [lang] SerializationUtils and generics

2012-04-06 Thread sebb
On 5 April 2012 16:38, Jörg Schaible wrote: > Hi Gary, > > Gary Gregory wrote: > >> Hi All: >> >> I'd like to propose the change below. This lets you get rid of type casts >> in call sites. You'll still get a ClassCastException if you code it wrong >> of course. > > +1 > >> The compiler warning yo

Re: [lang] SerializationUtils and generics

2012-04-05 Thread Jörg Schaible
Hi Gary, Gary Gregory wrote: > Hi All: > > I'd like to propose the change below. This lets you get rid of type casts > in call sites. You'll still get a ClassCastException if you code it wrong > of course. +1 > The compiler warning you'll get is valid, so do not think we should > @SuppressWarn