jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r1558143 - in /jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/delegate: AuthorizableDelegator.java ImpersonationDelegator.java
Date Tue, 14 Jan 2014 18:24:37 GMT
Author: angela
Date: Tue Jan 14 18:24:37 2014
New Revision: 1558143

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


Modified:
    jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/delegate/AuthorizableDelegator.java
    jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/delegate/ImpersonationDelegator.java

Modified: jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/delegate/AuthorizableDelegator.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/delegate/AuthorizableDelegator.java?rev=1558143&r1=1558142&r2=1558143&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/delegate/AuthorizableDelegator.java
(original)
+++ jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/delegate/AuthorizableDelegator.java
Tue Jan 14 18:24:37 2014
@@ -220,7 +220,7 @@ abstract class AuthorizableDelegator imp
     }
 
     @Override
-    public String getPath() throws UnsupportedRepositoryOperationException, RepositoryException
{
+    public String getPath() throws RepositoryException {
         return sessionDelegate.perform(new SessionOperation<String>() {
             @Override
             public String perform() throws RepositoryException {

Modified: jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/delegate/ImpersonationDelegator.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/delegate/ImpersonationDelegator.java?rev=1558143&r1=1558142&r2=1558143&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/delegate/ImpersonationDelegator.java
(original)
+++ jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/delegate/ImpersonationDelegator.java
Tue Jan 14 18:24:37 2014
@@ -19,10 +19,7 @@
 
 package org.apache.jackrabbit.oak.jcr.delegate;
 
-import static com.google.common.base.Preconditions.checkArgument;
-
 import java.security.Principal;
-
 import javax.jcr.RepositoryException;
 import javax.security.auth.Subject;
 
@@ -30,13 +27,15 @@ import org.apache.jackrabbit.api.securit
 import org.apache.jackrabbit.api.security.user.Impersonation;
 import org.apache.jackrabbit.oak.jcr.session.operation.SessionOperation;
 
+import static com.google.common.base.Preconditions.checkArgument;
+
 /**
  * This implementation of {@code Impersonation} delegates back to a
  * delegatee wrapping each call into a {@link SessionOperation} closure.
  *
  * @see SessionDelegate#perform(SessionOperation)
  */
-class ImpersonationDelegator implements Impersonation {
+final class ImpersonationDelegator implements Impersonation {
     private final SessionDelegate sessionDelegate;
     private final Impersonation impersonationDelegate;
 



Mime
View raw message