users@jersey.java.net

Parameter "type" in MessageBodyWriter

From: Jaka Jančar <jaka_at_kubje.org>
Date: Wed, 15 Apr 2009 22:08:11 +0200

Hi!

It's me with my type questions again :)

I was wondering, is the type parameter in MessageBodyWriter redundant,
given that we have genericType?

That is, is there a situation when type isn't equal to:

genericType instanceof ParameterizedType
    ? ((ParameterizedType) genericType).getRawType()
    : genericType;

Thanks,
 Jaka