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

commit 57e659c328230fd5faf0e8107eb830e6dc71df66
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Tue Sep 26 13:21:16 2023 +0100

    Code clean-up - no functional change
---
 java/org/apache/catalina/mapper/Mapper.java | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/java/org/apache/catalina/mapper/Mapper.java 
b/java/org/apache/catalina/mapper/Mapper.java
index a1f9d19257..c26875bd23 100644
--- a/java/org/apache/catalina/mapper/Mapper.java
+++ b/java/org/apache/catalina/mapper/Mapper.java
@@ -70,7 +70,7 @@ public final class Mapper {
     /**
      * Mapping from Context object to Context version to support 
RequestDispatcher mappings.
      */
-    private final Map<Context, ContextVersion> 
contextObjectToContextVersionMap = new ConcurrentHashMap<>();
+    private final Map<Context,ContextVersion> contextObjectToContextVersionMap 
= new ConcurrentHashMap<>();
 
 
     // --------------------------------------------------------- Public Methods
@@ -271,8 +271,8 @@ public final class Mapper {
         }
         int slashCount = slashCount(path);
         synchronized (mappedHost) {
-            ContextVersion newContextVersion = new ContextVersion(version, 
path, slashCount, context, resources,
-                    welcomeResources);
+            ContextVersion newContextVersion =
+                    new ContextVersion(version, path, slashCount, context, 
resources, welcomeResources);
             if (wrappers != null) {
                 addWrappers(newContextVersion, wrappers);
             }
@@ -1432,8 +1432,7 @@ public final class Mapper {
     /**
      * Insert into the right place in a sorted MapElement array, and prevent 
duplicates.
      */
-    private static <T> boolean insertMap(MapElement<T>[] oldMap, 
MapElement<T>[] newMap,
-            MapElement<T> newElement) {
+    private static <T> boolean insertMap(MapElement<T>[] oldMap, 
MapElement<T>[] newMap, MapElement<T> newElement) {
         int pos = find(oldMap, newElement.name);
         if ((pos != -1) && (newElement.name.equals(oldMap[pos].name))) {
             return false;


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to