This is an automated email from the ASF dual-hosted git repository. lihan 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 e51b6709bf Refactor Request::getSession() to invoke Request::getSession(true) internally. (#648) e51b6709bf is described below commit e51b6709bf50c59ea2a77111337abb9c114393ff Author: xxeol2 <jhj01...@naver.com> AuthorDate: Tue Sep 5 15:07:23 2023 +0900 Refactor Request::getSession() to invoke Request::getSession(true) internally. (#648) Refactor Request::getSession() to invoke Request::getSession(true) internally to eliminate code redundancy. (cherry picked from commit d0b655d8316bcef78b84255a9d8ee2f7cd78d649) --- java/org/apache/catalina/connector/Request.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/java/org/apache/catalina/connector/Request.java b/java/org/apache/catalina/connector/Request.java index 619dfc34fd..a38aad0d23 100644 --- a/java/org/apache/catalina/connector/Request.java +++ b/java/org/apache/catalina/connector/Request.java @@ -2404,12 +2404,7 @@ public class Request implements HttpServletRequest { */ @Override public HttpSession getSession() { - Session session = doGetSession(true); - if (session == null) { - return null; - } - - return session.getSession(); + return getSession(true); } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org