Author: reschke
Date: Tue Apr 10 14:54:13 2018
New Revision: 1828825

URL: http://svn.apache.org/viewvc?rev=1828825&view=rev
Log:
OAK-5122: Exercise for Custom Authorization Models

avoid use of Guava emptyIterator()

Modified:
    
jackrabbit/oak/trunk/oak-exercise/src/main/java/org/apache/jackrabbit/oak/exercise/security/authorization/models/readonly/ReadOnlyAuthorizationConfiguration.java

Modified: 
jackrabbit/oak/trunk/oak-exercise/src/main/java/org/apache/jackrabbit/oak/exercise/security/authorization/models/readonly/ReadOnlyAuthorizationConfiguration.java
URL: 
http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-exercise/src/main/java/org/apache/jackrabbit/oak/exercise/security/authorization/models/readonly/ReadOnlyAuthorizationConfiguration.java?rev=1828825&r1=1828824&r2=1828825&view=diff
==============================================================================
--- 
jackrabbit/oak/trunk/oak-exercise/src/main/java/org/apache/jackrabbit/oak/exercise/security/authorization/models/readonly/ReadOnlyAuthorizationConfiguration.java
 (original)
+++ 
jackrabbit/oak/trunk/oak-exercise/src/main/java/org/apache/jackrabbit/oak/exercise/security/authorization/models/readonly/ReadOnlyAuthorizationConfiguration.java
 Tue Apr 10 14:54:13 2018
@@ -17,6 +17,7 @@
 package 
org.apache.jackrabbit.oak.exercise.security.authorization.models.readonly;
 
 import java.security.Principal;
+import java.util.Collections;
 import java.util.List;
 import java.util.Set;
 import javax.annotation.Nonnull;
@@ -29,7 +30,6 @@ import javax.jcr.security.NamedAccessCon
 
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableSet;
-import com.google.common.collect.Iterators;
 import com.google.common.collect.Sets;
 import org.apache.jackrabbit.api.security.JackrabbitAccessControlPolicy;
 import 
org.apache.jackrabbit.commons.iterator.AccessControlPolicyIteratorAdapter;
@@ -172,7 +172,7 @@ public final class ReadOnlyAuthorization
 
             @Override
             public AccessControlPolicyIterator getApplicablePolicies(String 
absPath) {
-                return new 
AccessControlPolicyIteratorAdapter(Iterators.emptyIterator());
+                return new 
AccessControlPolicyIteratorAdapter(Collections.emptyIterator());
             }
 
             @Override


Reply via email to