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 8f53d2b13e Add comment to aid future maintenance. 8f53d2b13e is described below commit 8f53d2b13e21d5390fd6d518a8028893a171e6b7 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