users@jsr311.java.net

Re: MessageBodyWriter and annotations

From: Stephan Koops <Stephan.Koops_at_web.de>
Date: Mon, 30 Jun 2008 17:57:20 +0200

Hi Paul,
>> We could remove that parameter. I guess its mainly there for symmetry
>> with MessageBodyReader - is this a big deal ?
> ...and when annotations on return types may be supported by the JRE,
> so we avoid having to change the interface later on.
>
> IIRC those were the two reasons why that parameter is present and my
> understanding was that currently it should always be null.
Also good. But lets define an empty array, not null. This saves some
null checks / NPEs.

best regards
   Stephan