jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r1558152 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/security/authorization/CompositeAuthorizationConfiguration.java
Date Tue, 14 Jan 2014 18:29:40 GMT
Author: angela
Date: Tue Jan 14 18:29:39 2014
New Revision: 1558152

URL: http://svn.apache.org/r1558152
Log:
minor improvement


Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/security/authorization/CompositeAuthorizationConfiguration.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/security/authorization/CompositeAuthorizationConfiguration.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/security/authorization/CompositeAuthorizationConfiguration.java?rev=1558152&r1=1558151&r2=1558152&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/security/authorization/CompositeAuthorizationConfiguration.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/security/authorization/CompositeAuthorizationConfiguration.java
Tue Jan 14 18:29:39 2014
@@ -177,10 +177,8 @@ public class CompositeAuthorizationConfi
         public JackrabbitAccessControlPolicy[] getApplicablePolicies(Principal principal)
throws RepositoryException {
             ImmutableList.Builder<JackrabbitAccessControlPolicy> policies = ImmutableList.builder();
             for (AccessControlManager acMgr : acMgrs) {
-                if (acMgr instanceof JackrabbitAccessControlManager) {
-                    if (acMgr instanceof PolicyOwner) {
-                        policies.add(((JackrabbitAccessControlManager) acMgr).getApplicablePolicies(principal));
-                    }
+                if (acMgr instanceof JackrabbitAccessControlManager && acMgr instanceof
PolicyOwner) {
+                    policies.add(((JackrabbitAccessControlManager) acMgr).getApplicablePolicies(principal));
                 }
             }
             List<JackrabbitAccessControlPolicy> l = policies.build();



Mime
View raw message