This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/main by this push:
     new 1aad884e23 Add comment to aid future maintenance.
1aad884e23 is described below

commit 1aad884e23673b4bfa0b12ed573f646b214c52d5
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 b7c0c8060b..84b38244ea 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

Reply via email to