Author: mduerig
Date: Tue Aug  8 09:43:57 2017
New Revision: 1804382

URL: http://svn.apache.org/viewvc?rev=1804382&view=rev
Log:
@trivial: static, final

Modified:
    
jackrabbit/oak/trunk/oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/file/tar/index/IndexLoader.java
    
jackrabbit/oak/trunk/oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/file/tooling/ConsistencyChecker.java
    
jackrabbit/oak/trunk/oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/scheduler/LockBasedScheduler.java

Modified: 
jackrabbit/oak/trunk/oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/file/tar/index/IndexLoader.java
URL: 
http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/file/tar/index/IndexLoader.java?rev=1804382&r1=1804381&r2=1804382&view=diff
==============================================================================
--- 
jackrabbit/oak/trunk/oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/file/tar/index/IndexLoader.java
 (original)
+++ 
jackrabbit/oak/trunk/oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/file/tar/index/IndexLoader.java
 Tue Aug  8 09:43:57 2017
@@ -47,7 +47,7 @@ public class IndexLoader {
         this.v2 = new IndexLoaderV2(blockSize);
     }
 
-    private int readMagic(ReaderAtEnd reader) throws IOException {
+    private static int readMagic(ReaderAtEnd reader) throws IOException {
         return reader.readAtEnd(Integer.BYTES, Integer.BYTES).getInt();
     }
 

Modified: 
jackrabbit/oak/trunk/oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/file/tooling/ConsistencyChecker.java
URL: 
http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/file/tooling/ConsistencyChecker.java?rev=1804382&r1=1804381&r2=1804382&view=diff
==============================================================================
--- 
jackrabbit/oak/trunk/oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/file/tooling/ConsistencyChecker.java
 (original)
+++ 
jackrabbit/oak/trunk/oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/file/tooling/ConsistencyChecker.java
 Tue Aug  8 09:43:57 2017
@@ -356,8 +356,8 @@ public class ConsistencyChecker implemen
     }
     
     static class NodeWrapper {
-        NodeState node;
-        String path;
+        final NodeState node;
+        final String path;
         
         NodeWrapper(NodeState node, String path) {
             this.node = node;

Modified: 
jackrabbit/oak/trunk/oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/scheduler/LockBasedScheduler.java
URL: 
http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/scheduler/LockBasedScheduler.java?rev=1804382&r1=1804381&r2=1804382&view=diff
==============================================================================
--- 
jackrabbit/oak/trunk/oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/scheduler/LockBasedScheduler.java
 (original)
+++ 
jackrabbit/oak/trunk/oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/scheduler/LockBasedScheduler.java
 Tue Aug  8 09:43:57 2017
@@ -147,7 +147,7 @@ public class LockBasedScheduler implemen
 
     private final SegmentNodeStoreStats stats;
     
-    private Histogram commitTimeHistogram = new Histogram(new 
SlidingWindowReservoir(1000));
+    private final Histogram commitTimeHistogram = new Histogram(new 
SlidingWindowReservoir(1000));
     
 
     public LockBasedScheduler(LockBasedSchedulerBuilder builder) {


Reply via email to