This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 8.5.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/8.5.x by this push: new 841f82713b Add comment to aid future maintenance. 841f82713b is described below commit 841f82713b74da59fa0a3121aae1e7959be0fd46 Author: Mark Thomas <ma...@apache.org> AuthorDate: Tue Jul 4 18:31:16 2023 +0100 Add comment to aid future maintenance. --- java/org/apache/catalina/core/StandardWrapperFacade.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/java/org/apache/catalina/core/StandardWrapperFacade.java b/java/org/apache/catalina/core/StandardWrapperFacade.java index c4291bb7db..aef9b768af 100644 --- a/java/org/apache/catalina/core/StandardWrapperFacade.java +++ b/java/org/apache/catalina/core/StandardWrapperFacade.java @@ -73,6 +73,10 @@ public final class StandardWrapperFacade implements ServletConfig { @Override public ServletContext getServletContext() { + /* + * This method may be called concurrently but the same context object will always be returned. There is no + * concurrency issue here. + */ if (context == null) { context = config.getServletContext(); if (context instanceof ApplicationContext) { --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org