jsr340-experts@servlet-spec.java.net

[jsr340-experts] Re: generic changes

From: Mark Thomas <markt_at_apache.org>
Date: Wed, 27 Jul 2011 08:28:35 +0100

On 27/07/2011 00:26, Shing Wai Chan wrote:
> While compiling javax.servlet classes, there are two warnings about
> unchecked call.
> I suggest the following two generic changes:
>
> ServletRequestWrapper.java
> 549c549
> < public boolean isWrapperFor(Class<?> wrappedType) {
> ---
>> public boolean isWrapperFor(Class wrappedType) {
>
> ServletResponseWrapper.java
> 290c290
> < public boolean isWrapperFor(Class<?> wrappedType) {
> ---
>> public boolean isWrapperFor(Class wrappedType) {

Also javax.servlet.annotation.HandlesTypes.values()

On a related topic, using @Deprecated would remove the need for ~30
instances of @SuppressWarnings("dep-ann") currently spread throughout
the Servlet 3 API implementation in Tomcat.

Mark