cocoon-cvs mailing list archives

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

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

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

Modified: cocoon/cocoon3/trunk/cocoon-sitemap/src/main/java/org/apache/cocoon/sitemap/spring/ReflectionPipelineComponentFactory.java
URL: http://svn.apache.org/viewvc/cocoon/cocoon3/trunk/cocoon-sitemap/src/main/java/org/apache/cocoon/sitemap/spring/ReflectionPipelineComponentFactory.java?rev=1154318&r1=1154317&r2=1154318&view=diff
==============================================================================
--- cocoon/cocoon3/trunk/cocoon-sitemap/src/main/java/org/apache/cocoon/sitemap/spring/ReflectionPipelineComponentFactory.java
(original)
+++ cocoon/cocoon3/trunk/cocoon-sitemap/src/main/java/org/apache/cocoon/sitemap/spring/ReflectionPipelineComponentFactory.java
Fri Aug  5 17:05:58 2011
@@ -31,10 +31,10 @@ public class ReflectionPipelineComponent
     /**
      * @param types
      */
-    @SuppressWarnings("unchecked")
     public void setTypes(Map<String, String> types) {
         for (Entry<String, String> entry : types.entrySet()) {
             try {
+                @SuppressWarnings("unchecked")
                 Class<? extends PipelineComponent> nodeClass = (Class<? extends
PipelineComponent>) Class.forName(entry
                         .getValue());
                 this.types.put(entry.getKey(), nodeClass);



Mime
View raw message