소스 검색

SEC-2805: Remove unnecessary cast in Http403ForbiddenEntryPoint

Rob Winch 10 년 전
부모
커밋
b04388ad62
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      web/src/main/java/org/springframework/security/web/authentication/Http403ForbiddenEntryPoint.java

+ 1 - 2
web/src/main/java/org/springframework/security/web/authentication/Http403ForbiddenEntryPoint.java

@@ -43,8 +43,7 @@ public class Http403ForbiddenEntryPoint implements AuthenticationEntryPoint {
         if (logger.isDebugEnabled()) {
             logger.debug("Pre-authenticated entry point called. Rejecting access");
         }
-        HttpServletResponse httpResponse = (HttpServletResponse) response;
-        httpResponse.sendError(HttpServletResponse.SC_FORBIDDEN, "Access Denied");
+        response.sendError(HttpServletResponse.SC_FORBIDDEN, "Access Denied");
     }