This is an automated email from the ASF dual-hosted git repository. rjung pushed a commit to branch 9.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push: new d8cf34d113 Rename some parameters. No functional change. d8cf34d113 is described below commit d8cf34d113a418fba63ca5411f8d26c94723c0f1 Author: Rainer Jung <rainer.j...@kippdata.de> AuthorDate: Thu Apr 27 09:26:01 2023 +0200 Rename some parameters. No functional change. Instead of "header" (copy-and-pasted) use something more sensible. --- .../catalina/valves/AbstractAccessLogValve.java | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/java/org/apache/catalina/valves/AbstractAccessLogValve.java b/java/org/apache/catalina/valves/AbstractAccessLogValve.java index 1569701020..87784a205e 100644 --- a/java/org/apache/catalina/valves/AbstractAccessLogValve.java +++ b/java/org/apache/catalina/valves/AbstractAccessLogValve.java @@ -1074,8 +1074,8 @@ public abstract class AbstractAccessLogValve extends ValveBase implements Access return result.toString(); } - protected DateAndTimeElement(String header) { - String format = header; + protected DateAndTimeElement(String sdf) { + String format = sdf; boolean usesBegin = false; FormatType type = FormatType.CLF; @@ -1551,17 +1551,17 @@ public abstract class AbstractAccessLogValve extends ValveBase implements Access * write an attribute in the ServletRequest - %{xxx}r */ protected static class RequestAttributeElement implements AccessLogElement { - private final String header; + private final String attribute; - public RequestAttributeElement(String header) { - this.header = header; + public RequestAttributeElement(String attribute) { + this.attribute = attribute; } @Override public void addElement(CharArrayWriter buf, Date date, Request request, Response response, long time) { Object value = null; if (request != null) { - value = request.getAttribute(header); + value = request.getAttribute(attribute); } else { value = "??"; } @@ -1581,10 +1581,10 @@ public abstract class AbstractAccessLogValve extends ValveBase implements Access * write an attribute in the HttpSession - %{xxx}s */ protected static class SessionAttributeElement implements AccessLogElement { - private final String header; + private final String attribute; - public SessionAttributeElement(String header) { - this.header = header; + public SessionAttributeElement(String attribute) { + this.attribute = attribute; } @Override @@ -1593,7 +1593,7 @@ public abstract class AbstractAccessLogValve extends ValveBase implements Access if (null != request) { HttpSession sess = request.getSession(false); if (null != sess) { - value = sess.getAttribute(header); + value = sess.getAttribute(attribute); } } else { value = "??"; --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org