This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push:
new 436925ba6b Simplify
436925ba6b is described below
commit 436925ba6b33a81f5dd3add586e6289edb24196c
Author: Mark Thomas <[email protected]>
AuthorDate: Mon Jul 27 08:27:20 2026 +0100
Simplify
---
java/org/apache/catalina/core/StandardContext.java | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/java/org/apache/catalina/core/StandardContext.java
b/java/org/apache/catalina/core/StandardContext.java
index 1be435a8dc..dffd84e1a2 100644
--- a/java/org/apache/catalina/core/StandardContext.java
+++ b/java/org/apache/catalina/core/StandardContext.java
@@ -4769,10 +4769,7 @@ public class StandardContext extends ContainerBase
implements Context, Notificat
private void mergeParameters() {
Map<String,String> mergedParams = new HashMap<>();
- String[] names = findParameters();
- for (String s : names) {
- mergedParams.put(s, findParameter(s));
- }
+ mergedParams.putAll(parameters);
ApplicationParameter[] params = findApplicationParameters();
for (ApplicationParameter param : params) {
@@ -4787,7 +4784,6 @@ public class StandardContext extends ContainerBase
implements Context, Notificat
for (Map.Entry<String,String> entry : mergedParams.entrySet()) {
sc.setInitParameter(entry.getKey(), entry.getValue());
}
-
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]