cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anathan...@apache.org
Subject svn commit: r1153590 - /cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/component/XSLTTransformer.java
Date Wed, 03 Aug 2011 17:30:33 GMT
Author: anathaniel
Date: Wed Aug  3 17:30:31 2011
New Revision: 1153590

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

Modified:
    cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/component/XSLTTransformer.java

Modified: cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/component/XSLTTransformer.java
URL: http://svn.apache.org/viewvc/cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/component/XSLTTransformer.java?rev=1153590&r1=1153589&r2=1153590&view=diff
==============================================================================
--- cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/component/XSLTTransformer.java
(original)
+++ cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/component/XSLTTransformer.java
Wed Aug  3 17:30:31 2011
@@ -208,7 +208,6 @@ public class XSLTTransformer extends Abs
      * {@inheritDoc}
      */
     @Override
-    @SuppressWarnings("unchecked")
     public void setConfiguration(
             final Map<String, ? extends Object> configuration) {
 
@@ -222,7 +221,9 @@ public class XSLTTransformer extends Abs
         if (this.source != null) {
             Object attributesObj = configuration.get("attributes");
             if (attributesObj != null && attributesObj instanceof Map) {
-                this.loadXSLT(this.source, (Map) attributesObj);
+                @SuppressWarnings("unchecked")
+                Map<String,Object> attributesMap = (Map<String,Object>) attributesObj;
+                this.loadXSLT(this.source, attributesMap);
             } else {
                 this.loadXSLT(this.source, null);
             }



Mime
View raw message