jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r984831 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/user/ImpersonationImpl.java
Date Thu, 12 Aug 2010 15:32:11 GMT
Author: angela
Date: Thu Aug 12 15:32:10 2010
New Revision: 984831

URL: http://svn.apache.org/viewvc?rev=984831&view=rev
Log:
minor improvement

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/user/ImpersonationImpl.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/user/ImpersonationImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/user/ImpersonationImpl.java?rev=984831&r1=984830&r2=984831&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/user/ImpersonationImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/user/ImpersonationImpl.java
Thu Aug 12 15:32:10 2010
@@ -65,7 +65,7 @@ class ImpersonationImpl implements Imper
             final PrincipalManager pMgr = user.getSession().getPrincipalManager();
 
             Set<Principal> s = new HashSet<Principal>();
-            for (String pName: impersonators) {
+            for (String pName : impersonators) {
                 Principal p = pMgr.getPrincipal(pName);
                 if (p == null) {
                     log.debug("Impersonator " + pName + " does not correspond to a known
Principal.");
@@ -132,7 +132,7 @@ class ImpersonationImpl implements Imper
     }
 
     /**
-     * @see Impersonation#allows(Subject) 
+     * @see Impersonation#allows(Subject)
      */
     public boolean allows(Subject subject) throws RepositoryException {
         if (subject == null) {
@@ -145,7 +145,7 @@ class ImpersonationImpl implements Imper
         }
 
         Set<String> principalNames = new HashSet<String>();
-        for (Principal p: subject.getPrincipals()) {
+        for (Principal p : subject.getPrincipals()) {
             principalNames.add(p.getName());
         }
 



Mime
View raw message