cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anathan...@apache.org
Subject svn commit: r1154316 - /cocoon/cocoon3/trunk/cocoon-sitemap/src/main/java/org/apache/cocoon/sitemap/spring/ReflectionActionFactory.java
Date Fri, 05 Aug 2011 17:04:46 GMT
Author: anathaniel
Date: Fri Aug  5 17:04:46 2011
New Revision: 1154316

URL: http://svn.apache.org/viewvc?rev=1154316&view=rev
Log:
Limit scope of @SuppressWarnings("unchecked")

Modified:
    cocoon/cocoon3/trunk/cocoon-sitemap/src/main/java/org/apache/cocoon/sitemap/spring/ReflectionActionFactory.java

Modified: cocoon/cocoon3/trunk/cocoon-sitemap/src/main/java/org/apache/cocoon/sitemap/spring/ReflectionActionFactory.java
URL: http://svn.apache.org/viewvc/cocoon/cocoon3/trunk/cocoon-sitemap/src/main/java/org/apache/cocoon/sitemap/spring/ReflectionActionFactory.java?rev=1154316&r1=1154315&r2=1154316&view=diff
==============================================================================
--- cocoon/cocoon3/trunk/cocoon-sitemap/src/main/java/org/apache/cocoon/sitemap/spring/ReflectionActionFactory.java
(original)
+++ cocoon/cocoon3/trunk/cocoon-sitemap/src/main/java/org/apache/cocoon/sitemap/spring/ReflectionActionFactory.java
Fri Aug  5 17:04:46 2011
@@ -48,12 +48,12 @@ public class ReflectionActionFactory imp
         }
     }
 
-    @SuppressWarnings("unchecked")
     public void setTypes(Map<String, String> types) {
         this.types.clear();
 
         for (Entry<String, String> entry : types.entrySet()) {
             try {
+                @SuppressWarnings("unchecked")
                 Class<? extends Action> actionClass = (Class<? extends Action>)
Class.forName(entry.getValue());
                 this.types.put(entry.getKey(), actionClass);
             } catch (ClassCastException ccex) {



Mime
View raw message