jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r1440538 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/KernelNodeStore.java
Date Wed, 30 Jan 2013 17:29:31 GMT
Author: angela
Date: Wed Jan 30 17:29:30 2013
New Revision: 1440538

URL: http://svn.apache.org/viewvc?rev=1440538&view=rev
Log:
minor improvement (add @Nonnull annotations and replace single character string)

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

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/KernelNodeStore.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/KernelNodeStore.java?rev=1440538&r1=1440537&r2=1440538&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/KernelNodeStore.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/KernelNodeStore.java
Wed Jan 30 17:29:30 2013
@@ -80,7 +80,7 @@ public class KernelNodeStore implements 
     public KernelNodeStore(MicroKernel kernel) {
         this.kernel = checkNotNull(kernel);
         try {
-            this.root = cache.get(kernel.getHeadRevision() + "/");
+            this.root = cache.get(kernel.getHeadRevision() + '/');
         } catch (Exception e) {
             throw new RuntimeException(e);
         }
@@ -91,7 +91,7 @@ public class KernelNodeStore implements 
         return hook;
     }
 
-    public void setHook(CommitHook hook) {
+    public void setHook(@Nonnull CommitHook hook) {
         this.hook = checkNotNull(hook);
     }
 
@@ -100,7 +100,7 @@ public class KernelNodeStore implements 
         return observer;
     }
 
-    public void setObserver(Observer observer) {
+    public void setObserver(@Nonnull Observer observer) {
         this.observer = checkNotNull(observer);
     }
 
@@ -130,8 +130,7 @@ public class KernelNodeStore implements 
         try {
             String blobId = kernel.write(inputStream);
             return new KernelBlob(blobId, kernel);
-        }
-        catch (MicroKernelException e) {
+        } catch (MicroKernelException e) {
             throw new IOException(e);
         }
     }



Mime
View raw message