This is an automated email from the ASF dual-hosted git repository. schultz 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 41991eccb4 Fix unit tests. 41991eccb4 is described below commit 41991eccb4191854d3c1ed1da7559e4e58d89086 Author: Christopher Schultz <ch...@christopherschultz.net> AuthorDate: Thu Feb 1 13:06:27 2024 -0500 Fix unit tests. --- java/org/apache/catalina/filters/CsrfPreventionFilter.java | 2 +- test/org/apache/catalina/filters/TestCsrfPreventionFilter.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java/org/apache/catalina/filters/CsrfPreventionFilter.java b/java/org/apache/catalina/filters/CsrfPreventionFilter.java index 21d0ac735f..d014c0b98b 100644 --- a/java/org/apache/catalina/filters/CsrfPreventionFilter.java +++ b/java/org/apache/catalina/filters/CsrfPreventionFilter.java @@ -100,7 +100,7 @@ public class CsrfPreventionFilter extends CsrfPreventionFilterBase { */ private String noNoncePatterns = DEFAULT_NO_NONCE_URL_PATTERNS; - private interface Predicate<T> { + public interface Predicate<T> { boolean test(T t); } diff --git a/test/org/apache/catalina/filters/TestCsrfPreventionFilter.java b/test/org/apache/catalina/filters/TestCsrfPreventionFilter.java index b9e0c06f3c..5fb8a267a5 100644 --- a/test/org/apache/catalina/filters/TestCsrfPreventionFilter.java +++ b/test/org/apache/catalina/filters/TestCsrfPreventionFilter.java @@ -24,7 +24,6 @@ import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.Iterator; -import java.util.function.Predicate; import javax.servlet.http.HttpServletResponse; @@ -32,6 +31,7 @@ import org.junit.Assert; import org.junit.Test; import org.apache.catalina.filters.CsrfPreventionFilter.LruCache; +import org.apache.catalina.filters.CsrfPreventionFilter.Predicate; import org.apache.catalina.startup.TomcatBaseTest; import org.apache.tomcat.unittest.TesterServletContext; --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org