From 863aa5f65f35524220a73f96dbf55e7e2552d702 Mon Sep 17 00:00:00 2001 From: Marcus Da Coregio Date: Fri, 7 Jul 2023 14:35:11 -0300 Subject: [PATCH] Fix Documented Default Value for AuthorizationFilter properties Closes gh-13456 --- .../security/web/access/intercept/AuthorizationFilter.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/web/src/main/java/org/springframework/security/web/access/intercept/AuthorizationFilter.java b/web/src/main/java/org/springframework/security/web/access/intercept/AuthorizationFilter.java index ae88d84239..e0f53d6eb2 100644 --- a/web/src/main/java/org/springframework/security/web/access/intercept/AuthorizationFilter.java +++ b/web/src/main/java/org/springframework/security/web/access/intercept/AuthorizationFilter.java @@ -188,7 +188,7 @@ public class AuthorizationFilter extends GenericFilterBean { /** * Sets whether this filter apply only once per request. By default, this is - * true, meaning the filter will only execute once per request. Sometimes + * false, meaning the filter will execute on every request. Sometimes * users may wish it to execute more than once per request, such as when JSP forwards * are being used and filter security is desired on each included fragment of the HTTP * request. @@ -200,7 +200,8 @@ public class AuthorizationFilter extends GenericFilterBean { } /** - * If set to true, the filter will be applied to error dispatcher. Defaults to false. + * If set to true, the filter will be applied to error dispatcher. Defaults to + * {@code true}. * @param filterErrorDispatch whether the filter should be applied to error dispatcher */ public void setFilterErrorDispatch(boolean filterErrorDispatch) { @@ -209,7 +210,7 @@ public class AuthorizationFilter extends GenericFilterBean { /** * If set to true, the filter will be applied to the async dispatcher. Defaults to - * false. + * {@code true}. * @param filterAsyncDispatch whether the filter should be applied to async dispatch */ public void setFilterAsyncDispatch(boolean filterAsyncDispatch) {