tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremy Boynes <jboy...@apache.org>
Subject Re: svn commit: r1508171 - /tomcat/trunk/java/org/apache/catalina/startup/WebappServiceLoader.java
Date Mon, 29 Jul 2013 19:02:32 GMT
This flags as a warning for me in IDEA without the suppression. Isn't this
an unchecked cast (Object to List<String>)?


On Mon, Jul 29, 2013 at 11:38 AM, <markt@apache.org> wrote:

> Author: markt
> Date: Mon Jul 29 18:38:08 2013
> New Revision: 1508171
>
> URL: http://svn.apache.org/r1508171
> Log:
> Remove unnecessary @SuppressWarnings
>
> Modified:
>     tomcat/trunk/java/org/apache/catalina/startup/WebappServiceLoader.java
>
> Modified:
> tomcat/trunk/java/org/apache/catalina/startup/WebappServiceLoader.java
> URL:
> http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/startup/WebappServiceLoader.java?rev=1508171&r1=1508170&r2=1508171&view=diff
>
> ==============================================================================
> --- tomcat/trunk/java/org/apache/catalina/startup/WebappServiceLoader.java
> (original)
> +++ tomcat/trunk/java/org/apache/catalina/startup/WebappServiceLoader.java
> Mon Jul 29 18:38:08 2013
> @@ -82,7 +82,6 @@ public class WebappServiceLoader<T> {
>
>          // if the ServletContext has ORDERED_LIBS, then use that to
> specify the
>          // set of JARs from WEB-INF/lib that should be used for loading
> services
> -        @SuppressWarnings("unchecked")
>          List<String> orderedLibs = (List<String>)
> context.getAttribute(ServletContext.ORDERED_LIBS);
>          if (orderedLibs != null) {
>              // handle ordered libs directly, ...
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message