cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anathan...@apache.org
Subject svn commit: r1154305 - /cocoon/cocoon3/trunk/cocoon-servlet/src/main/java/org/apache/cocoon/servlet/collector/ResponseHeaderCollector.java
Date Fri, 05 Aug 2011 16:45:25 GMT
Author: anathaniel
Date: Fri Aug  5 16:45:25 2011
New Revision: 1154305

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

Modified:
    cocoon/cocoon3/trunk/cocoon-servlet/src/main/java/org/apache/cocoon/servlet/collector/ResponseHeaderCollector.java

Modified: cocoon/cocoon3/trunk/cocoon-servlet/src/main/java/org/apache/cocoon/servlet/collector/ResponseHeaderCollector.java
URL: http://svn.apache.org/viewvc/cocoon/cocoon3/trunk/cocoon-servlet/src/main/java/org/apache/cocoon/servlet/collector/ResponseHeaderCollector.java?rev=1154305&r1=1154304&r2=1154305&view=diff
==============================================================================
--- cocoon/cocoon3/trunk/cocoon-servlet/src/main/java/org/apache/cocoon/servlet/collector/ResponseHeaderCollector.java
(original)
+++ cocoon/cocoon3/trunk/cocoon-servlet/src/main/java/org/apache/cocoon/servlet/collector/ResponseHeaderCollector.java
Fri Aug  5 16:45:25 2011
@@ -42,12 +42,12 @@ public class ResponseHeaderCollector {
     private static final String KEY_REQUEST_METHOD = ResponseHeaderCollector.class.getName()
+ "/method";
     private static final String KEY_STATUS_CODE = ResponseHeaderCollector.class.getName()
+ "/status-code";
 
-    @SuppressWarnings("unchecked")
     @Around("execution(* org.apache.cocoon.pipeline.Pipeline.execute(..))")
     public Object interceptInvoke(ProceedingJoinPoint proceedingJoinPoint) throws Throwable
{
         // prepare data
         // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         setModifiedResponse(false);
+        @SuppressWarnings("unchecked")
         Pipeline<PipelineComponent> pipeline = (Pipeline<PipelineComponent>)
proceedingJoinPoint.getTarget();
 
         // collect last-modified data



Mime
View raw message