This is an automated email from the ASF dual-hosted git repository.
markt-asf 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 a6982a7126 Work-around bug in Checkstyle parser
a6982a7126 is described below
commit a6982a7126a1289c250fb09e4f579997d2153bf6
Author: Mark Thomas <[email protected]>
AuthorDate: Thu May 7 14:54:42 2026 +0100
Work-around bug in Checkstyle parser
---
java/org/apache/catalina/valves/AbstractAccessLogValve.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/java/org/apache/catalina/valves/AbstractAccessLogValve.java
b/java/org/apache/catalina/valves/AbstractAccessLogValve.java
index 3c95e14554..df81048213 100644
--- a/java/org/apache/catalina/valves/AbstractAccessLogValve.java
+++ b/java/org/apache/catalina/valves/AbstractAccessLogValve.java
@@ -1640,14 +1640,13 @@ public abstract class AbstractAccessLogValve extends
ValveBase implements Access
* @param styleName The name of the elapsed-time style to use.
*/
public ElapsedTimeElement(String styleName) {
- Style style = switch (styleName) {
+ this.style = switch (styleName) {
case "ns" -> ElapsedTimeElement.Style.NANOSECONDS;
case "us" -> ElapsedTimeElement.Style.MICROSECONDS;
case "ms" -> ElapsedTimeElement.Style.MILLISECONDS;
case "fracsec" -> ElapsedTimeElement.Style.SECONDS_FRACTIONAL;
case null, default -> ElapsedTimeElement.Style.SECONDS;
};
- this(style);
}
@Override
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]