dev@jsr311.java.net

Re: JSR311: MediaType.parse -> MediaType.valueOf

From: Stephan Koops <Stephan.Koops_at_web.de>
Date: Thu, 27 Mar 2008 10:53:33 +0100

+1

Paul Sandoz schrieb:
> Hi,
>
> I noticed a slight "impedance" difference with MediaType et. al and
> the @*Param annotations.
>
> MediaType has a static method, "parse", to parse a String to an
> instance.
>
> It would make sense to rename such methods to "valueOf" then, where it
> makes sense, such types can be used with @*Param.
>
> Paul.
>