tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1843655 - /tomcat/trunk/java/org/apache/catalina/valves/ErrorReportValve.java
Date Fri, 12 Oct 2018 12:14:22 GMT
Author: markt
Date: Fri Oct 12 12:14:22 2018
New Revision: 1843655

URL: http://svn.apache.org/viewvc?rev=1843655&view=rev
Log:
Fix IDE nag (unnecessary cast)

Modified:
    tomcat/trunk/java/org/apache/catalina/valves/ErrorReportValve.java

Modified: tomcat/trunk/java/org/apache/catalina/valves/ErrorReportValve.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/valves/ErrorReportValve.java?rev=1843655&r1=1843654&r2=1843655&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/valves/ErrorReportValve.java (original)
+++ tomcat/trunk/java/org/apache/catalina/valves/ErrorReportValve.java Fri Oct 12 12:14:22
2018
@@ -104,7 +104,7 @@ public class ErrorReportValve extends Va
                 // Close immediately to signal to the client that something went
                 // wrong
                 response.getCoyoteResponse().action(ActionCode.CLOSE_NOW,
-                        (Throwable) request.getAttribute(RequestDispatcher.ERROR_EXCEPTION));
+                        request.getAttribute(RequestDispatcher.ERROR_EXCEPTION));
             }
             return;
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message