On Thu, Aug 26, 2010 at 6:48 AM, Stephen Colebourne
<scolebou...@joda.org> 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: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to