Skip to content

Commit

Permalink
Use javabean semantics for boolean accessor
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherSchultz committed Dec 28, 2023
1 parent 2ee643d commit 264c589
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions java/org/apache/catalina/filters/CsrfPreventionFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public void setEnforce(boolean enforce) {
* <code>false</code> if all requests will be allowed and
* failures will be logged as DEBUG messages.
*/
public boolean getEnforce() {
public boolean isEnforce() {
return this.enforce;
}

Expand Down Expand Up @@ -406,7 +406,7 @@ public void doFilter(ServletRequest request, ServletResponse response, FilterCha
* logged in DEBUG mode.
*/
protected boolean enforce(HttpServletRequest req, String requestedPath) {
return getEnforce();
return isEnforce();
}

protected boolean skipNonceCheck(HttpServletRequest request) {
Expand Down

0 comments on commit 264c589

Please sign in to comment.