On Thu, Aug 26, 2010 at 6:48 AM, Stephen Colebourne
<[email protected]> wrote:
> I add this "auto-cast" behaviour to some of my classes too. Its a
> useful technique to handle annoying cases. However, the alternative:
>  Person p = SerializableUtils.deserialize(Person.class, bytes);
> is more widely used.
>

But, using "Person.class," as opposed to "(Person)" is more characters
and doesn't really save you anything.  Either way, you get a runtime
exception if you screw up.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to