jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r1440608 - in /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak: core/ReadOnlyTree.java namepath/NamePathMapper.java security/privilege/PrivilegeContext.java
Date Wed, 30 Jan 2013 19:41:56 GMT
Author: angela
Date: Wed Jan 30 19:41:56 2013
New Revision: 1440608

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

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/ReadOnlyTree.java
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/namepath/NamePathMapper.java
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/privilege/PrivilegeContext.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/ReadOnlyTree.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/ReadOnlyTree.java?rev=1440608&r1=1440607&r2=1440608&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/ReadOnlyTree.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/ReadOnlyTree.java
Wed Jan 30 19:41:56 2013
@@ -253,7 +253,7 @@ public class ReadOnlyTree implements Tre
 
     //-------------------------------------------------------< TreeLocation >---
 
-    private class NodeLocation extends AbstractNodeLocation<ReadOnlyTree> {
+    private final class NodeLocation extends AbstractNodeLocation<ReadOnlyTree> {
 
         private NodeLocation(ReadOnlyTree tree) {
             super(tree);
@@ -310,7 +310,7 @@ public class ReadOnlyTree implements Tre
         }
     }
 
-    private class PropertyLocation extends AbstractPropertyLocation<NodeLocation> {
+    private final class PropertyLocation extends AbstractPropertyLocation<NodeLocation>
{
 
         private PropertyLocation(NodeLocation parentLocation, String name) {
             super(parentLocation, name);

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/namepath/NamePathMapper.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/namepath/NamePathMapper.java?rev=1440608&r1=1440607&r2=1440608&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/namepath/NamePathMapper.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/namepath/NamePathMapper.java
Wed Jan 30 19:41:56 2013
@@ -25,13 +25,13 @@ import javax.jcr.RepositoryException;
  */
 public interface NamePathMapper extends NameMapper, PathMapper {
 
-    public NamePathMapper DEFAULT = new Default();
+    NamePathMapper DEFAULT = new Default();
 
     /**
      * Default implementation that doesn't perform any conversions for cases
      * where a mapper object only deals with oak internal names and paths.
      */
-    public class Default implements NamePathMapper {
+    class Default implements NamePathMapper {
 
         @Override
         public String getOakNameOrNull(String jcrName) {

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/privilege/PrivilegeContext.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/privilege/PrivilegeContext.java?rev=1440608&r1=1440607&r2=1440608&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/privilege/PrivilegeContext.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/privilege/PrivilegeContext.java
Wed Jan 30 19:41:56 2013
@@ -24,15 +24,17 @@ import org.apache.jackrabbit.oak.util.No
 /**
  * PrivilegeContext... TODO
  */
-class PrivilegeContext implements Context {
+final class PrivilegeContext implements Context {
 
     private static final Context INSTANCE = new PrivilegeContext();
 
-    private PrivilegeContext() {}
+    private PrivilegeContext() {
+    }
 
     static Context getInstance() {
         return INSTANCE;
     }
+
     //------------------------------------------------------------< Context >---
     @Override
     public boolean definesProperty(Tree parent, PropertyState property) {



Mime
View raw message