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
The following commit(s) were added to refs/heads/8.5.x by this push: new 847d9d83a5 Reduce code duplication 847d9d83a5 is described below commit 847d9d83a513d693fcd7cbda5a44872ba1b621be Author: Mark Thomas <ma...@apache.org> AuthorDate: Tue Nov 7 14:11:36 2023 +0000 Reduce code duplication --- java/org/apache/catalina/core/ApplicationHttpRequest.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/java/org/apache/catalina/core/ApplicationHttpRequest.java b/java/org/apache/catalina/core/ApplicationHttpRequest.java index 1f9d64dbbb..9928d9bea7 100644 --- a/java/org/apache/catalina/core/ApplicationHttpRequest.java +++ b/java/org/apache/catalina/core/ApplicationHttpRequest.java @@ -768,13 +768,7 @@ class ApplicationHttpRequest extends HttpServletRequestWrapper { * @return true if the attribute was a special attribute, false otherwise */ protected boolean removeSpecial(String name) { - for (int i = 0; i < specials.length; i++) { - if (specials[i].equals(name)) { - specialAttributes[i] = null; - return true; - } - } - return false; + return setSpecial(name, null); } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org