You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2023/09/06 07:41:52 UTC
[tomcat] branch 9.0.x updated: Eliminating duplicate execution of checkFacade logic in ResponseFacade (#657)
This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new 115246c33d Eliminating duplicate execution of checkFacade logic in ResponseFacade (#657)
115246c33d is described below
commit 115246c33dbbe747a12aa9ead8246b23bfbe3e31
Author: xxeol2 <jh...@naver.com>
AuthorDate: Wed Sep 6 16:40:43 2023 +0900
Eliminating duplicate execution of checkFacade logic in ResponseFacade (#657)
Eliminating duplicate execution of checkFacade logic in ResponseFacade
---
java/org/apache/catalina/connector/ResponseFacade.java | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/java/org/apache/catalina/connector/ResponseFacade.java b/java/org/apache/catalina/connector/ResponseFacade.java
index 97bb870e4a..89aeecf0f9 100644
--- a/java/org/apache/catalina/connector/ResponseFacade.java
+++ b/java/org/apache/catalina/connector/ResponseFacade.java
@@ -174,23 +174,19 @@ public class ResponseFacade implements HttpServletResponse {
@Override
public ServletOutputStream getOutputStream() throws IOException {
- checkFacade();
- ServletOutputStream sos = response.getOutputStream();
if (isFinished()) {
response.setSuspended(true);
}
- return sos;
+ return response.getOutputStream();
}
@Override
public PrintWriter getWriter() throws IOException {
- checkFacade();
- PrintWriter writer = response.getWriter();
if (isFinished()) {
response.setSuspended(true);
}
- return writer;
+ return response.getWriter();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org