You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2023/09/08 20:37:50 UTC
[tomcat] branch main updated: Avoid useless map lookup
This is an automated email from the ASF dual-hosted git repository.
remm 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 aa15afefd8 Avoid useless map lookup
aa15afefd8 is described below
commit aa15afefd8066cc08601a5494d372b405eddf460
Author: remm <re...@apache.org>
AuthorDate: Fri Sep 8 22:37:20 2023 +0200
Avoid useless map lookup
---
java/org/apache/catalina/mbeans/ContextMBean.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/java/org/apache/catalina/mbeans/ContextMBean.java b/java/org/apache/catalina/mbeans/ContextMBean.java
index 9afea8a392..7457f5d98f 100644
--- a/java/org/apache/catalina/mbeans/ContextMBean.java
+++ b/java/org/apache/catalina/mbeans/ContextMBean.java
@@ -79,7 +79,7 @@ public class ContextMBean extends BaseCatalinaMBean<Context> {
Context context = doGetManagedResource();
ErrorPage errorPage = context.findErrorPage(errorCode);
if (errorPage != null) {
- return context.findErrorPage(errorCode).toString();
+ return errorPage.toString();
} else {
return null;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org