You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shiro.apache.org by lp...@apache.org on 2023/01/10 18:52:23 UTC

[shiro] branch main updated: Name the authorizationCachingEnabled flag correctly

This is an automated email from the ASF dual-hosted git repository.

lprimak pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/shiro.git


The following commit(s) were added to refs/heads/main by this push:
     new c0966bbd Name the authorizationCachingEnabled flag correctly
     new 2ab2442f Merge pull request #629 from mnd999/mnd999-name-authorizingrealm-cache-flag
c0966bbd is described below

commit c0966bbd2b179268bc8c853ffaf5cc0498a38fbf
Author: Mark Dixon <17...@users.noreply.github.com>
AuthorDate: Wed Jan 4 17:05:55 2023 +0000

    Name the authorizationCachingEnabled flag correctly
    
    Rename the authorizationCachingEnabled flag from authenticationCachingEnabled to authorizationCachingEnabled. The current name is confusing.
---
 core/src/main/java/org/apache/shiro/realm/AuthorizingRealm.java | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/core/src/main/java/org/apache/shiro/realm/AuthorizingRealm.java b/core/src/main/java/org/apache/shiro/realm/AuthorizingRealm.java
index e8bf2367..347e7e4e 100644
--- a/core/src/main/java/org/apache/shiro/realm/AuthorizingRealm.java
+++ b/core/src/main/java/org/apache/shiro/realm/AuthorizingRealm.java
@@ -164,12 +164,12 @@ public abstract class AuthorizingRealm extends AuthenticatingRealm
      * <p/>
      * The default value is {@code true}.
      *
-     * @param authenticationCachingEnabled the value to set
+     * @param authorizationCachingEnabled the value to set
      */
     @SuppressWarnings({"UnusedDeclaration"})
-    public void setAuthorizationCachingEnabled(boolean authenticationCachingEnabled) {
-        this.authorizationCachingEnabled = authenticationCachingEnabled;
-        if (authenticationCachingEnabled) {
+    public void setAuthorizationCachingEnabled(boolean authorizationCachingEnabled) {
+        this.authorizationCachingEnabled = authorizationCachingEnabled;
+        if (authorizationCachingEnabled) {
             setCachingEnabled(true);
         }
     }