jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1372986 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/RootImpl.java
Date Tue, 14 Aug 2012 17:22:02 GMT
Author: mduerig
Date: Tue Aug 14 17:22:01 2012
New Revision: 1372986

URL: http://svn.apache.org/viewvc?rev=1372986&view=rev
Log:
make refresh() final to prevent overrideable method being called from constructor

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/RootImpl.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/RootImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/RootImpl.java?rev=1372986&r1=1372985&r2=1372986&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/RootImpl.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/RootImpl.java
Tue Aug 14 17:22:01 2012
@@ -147,7 +147,7 @@ public class RootImpl implements Root {
     }
 
     @Override
-    public void refresh() {
+    public final void refresh() {
         branch = store.branch();
         rootTree = TreeImpl.createRoot(this);
         permissions = this.accessControlContext.getPermissions();



Mime
View raw message