jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1328680 - in /jackrabbit/oak/trunk/oak-core/src: main/java/org/apache/jackrabbit/mk/ main/java/org/apache/jackrabbit/mk/fs/ test/java/org/apache/jackrabbit/mk/ test/java/org/apache/jackrabbit/mk/concurrent/
Date Sat, 21 Apr 2012 14:58:51 GMT
Author: mduerig
Date: Sat Apr 21 14:58:50 2012
New Revision: 1328680

URL: http://svn.apache.org/viewvc?rev=1328680&view=rev
Log:
add private constructor to untility classes

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/mk/MicroKernelFactory.java
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/mk/fs/FileUtils.java
    jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/mk/HelloWorld.java
    jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/mk/concurrent/Concurrent.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/mk/MicroKernelFactory.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/mk/MicroKernelFactory.java?rev=1328680&r1=1328679&r2=1328680&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/mk/MicroKernelFactory.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/mk/MicroKernelFactory.java
Sat Apr 21 14:58:50 2012
@@ -16,10 +16,6 @@
  */
 package org.apache.jackrabbit.mk;
 
-import java.io.IOException;
-import java.util.HashMap;
-import java.util.Map;
-
 import org.apache.jackrabbit.mk.api.MicroKernel;
 import org.apache.jackrabbit.mk.api.MicroKernelException;
 import org.apache.jackrabbit.mk.client.Client;
@@ -33,6 +29,10 @@ import org.apache.jackrabbit.mk.wrapper.
 import org.apache.jackrabbit.mk.wrapper.SecurityWrapper;
 import org.apache.jackrabbit.mk.wrapper.VirtualRepositoryWrapper;
 
+import java.io.IOException;
+import java.util.HashMap;
+import java.util.Map;
+
 /**
  * A factory to create a MicroKernel instance.
  */
@@ -41,6 +41,9 @@ public class MicroKernelFactory {
     private static final Map<String, SimpleKernelImpl> INSTANCES =
             new HashMap<String, SimpleKernelImpl>();
 
+    private MicroKernelFactory() {
+    }
+
     /**
      * Get an instance. Supported URLs:
      * <ul>

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/mk/fs/FileUtils.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/mk/fs/FileUtils.java?rev=1328680&r1=1328679&r2=1328680&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/mk/fs/FileUtils.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/mk/fs/FileUtils.java
Sat Apr 21 14:58:50 2012
@@ -16,6 +16,8 @@
  */
 package org.apache.jackrabbit.mk.fs;
 
+import org.apache.jackrabbit.mk.util.IOUtils;
+
 import java.io.EOFException;
 import java.io.IOException;
 import java.io.InputStream;
@@ -24,7 +26,6 @@ import java.nio.ByteBuffer;
 import java.nio.channels.FileChannel;
 import java.util.ArrayList;
 import java.util.List;
-import org.apache.jackrabbit.mk.util.IOUtils;
 
 /**
  * This utility class contains utility functions that use the file system
@@ -32,6 +33,9 @@ import org.apache.jackrabbit.mk.util.IOU
  */
 public class FileUtils {
 
+    private FileUtils() {
+    }
+
     /**
      * Checks if a file exists.
      * This method is similar to Java 7 <code>java.nio.file.Path.exists</code>.

Modified: jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/mk/HelloWorld.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/mk/HelloWorld.java?rev=1328680&r1=1328679&r2=1328680&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/mk/HelloWorld.java (original)
+++ jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/mk/HelloWorld.java Sat
Apr 21 14:58:50 2012
@@ -24,6 +24,9 @@ import org.json.simple.parser.ParseExcep
  */
 public class HelloWorld {
 
+    private HelloWorld() {
+    }
+
     public static void main(String... args) throws ParseException {
         test("fs:{homeDir};clean");
         test("simple:");

Modified: jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/mk/concurrent/Concurrent.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/mk/concurrent/Concurrent.java?rev=1328680&r1=1328679&r2=1328680&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/mk/concurrent/Concurrent.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/mk/concurrent/Concurrent.java
Sat Apr 21 14:58:50 2012
@@ -16,13 +16,13 @@
  */
 package org.apache.jackrabbit.mk.concurrent;
 
+import org.h2.util.Profiler;
+
 import java.util.ArrayList;
 import java.util.concurrent.atomic.AtomicBoolean;
 import java.util.concurrent.atomic.AtomicInteger;
 import java.util.concurrent.atomic.AtomicReference;
 
-import org.h2.util.Profiler;
-
 /**
  * A concurrency test tool.
  */
@@ -30,6 +30,9 @@ public class Concurrent {
 
     private static final boolean PROFILE = false;
 
+    private Concurrent() {
+    }
+
     /**
      * Run a task concurrently in 2 threads for 1 second.
      *



Mime
View raw message