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