This is an automated email from the ASF dual-hosted git repository. remm 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 1c325ded24 Avoid useless map lookup 1c325ded24 is described below commit 1c325ded2492cda13ec8ce7a6f88dc9eb7b47c78 Author: remm <r...@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-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org