Fix eclipse/checkstyle warnings
[yangtools.git] / common / util / src / main / java / org / opendaylight / yangtools / util / concurrent / SpecialExecutors.java
index 929ecc01069b83694048f4a5a3a65ba78108cb1e..981c948c7e893bf641344319b63d9e43c2869ee7 100644 (file)
@@ -48,9 +48,9 @@ public final class SpecialExecutors {
      *            the name prefix for threads created by this executor.
      * @return a new ExecutorService with the specified configuration.
      */
-    public static ExecutorService newBoundedFastThreadPool( int maximumPoolSize,
-            int maximumQueueSize, String threadPrefix ) {
-        return new FastThreadPoolExecutor( maximumPoolSize, maximumQueueSize, threadPrefix );
+    public static ExecutorService newBoundedFastThreadPool(int maximumPoolSize,
+            int maximumQueueSize, String threadPrefix) {
+        return new FastThreadPoolExecutor(maximumPoolSize, maximumQueueSize, threadPrefix);
     }
 
     /**
@@ -68,12 +68,12 @@ public final class SpecialExecutors {
      *            the name prefix for threads created by this executor.
      * @return a new ExecutorService with the specified configuration.
      */
-    public static ExecutorService newBlockingBoundedFastThreadPool( int maximumPoolSize,
-            int maximumQueueSize, String threadPrefix ) {
+    public static ExecutorService newBlockingBoundedFastThreadPool(int maximumPoolSize,
+            int maximumQueueSize, String threadPrefix) {
 
         FastThreadPoolExecutor executor =
-                new FastThreadPoolExecutor( maximumPoolSize, maximumQueueSize, threadPrefix );
-        executor.setRejectedExecutionHandler( CountingRejectedExecutionHandler.newCallerRunsPolicy() );
+                new FastThreadPoolExecutor(maximumPoolSize, maximumQueueSize, threadPrefix);
+        executor.setRejectedExecutionHandler(CountingRejectedExecutionHandler.newCallerRunsPolicy());
         return executor;
     }
 
@@ -104,9 +104,9 @@ public final class SpecialExecutors {
      *            the name prefix for threads created by this executor.
      * @return a new ExecutorService with the specified configuration.
      */
-    public static ExecutorService newBoundedCachedThreadPool( int maximumPoolSize,
-            int maximumQueueSize, String threadPrefix ) {
-        return new CachedThreadPoolExecutor( maximumPoolSize, maximumQueueSize, threadPrefix );
+    public static ExecutorService newBoundedCachedThreadPool(int maximumPoolSize,
+            int maximumQueueSize, String threadPrefix) {
+        return new CachedThreadPoolExecutor(maximumPoolSize, maximumQueueSize, threadPrefix);
     }
 
     /**
@@ -124,12 +124,12 @@ public final class SpecialExecutors {
      *            the name prefix for threads created by this executor.
      * @return a new ExecutorService with the specified configuration.
      */
-    public static ExecutorService newBlockingBoundedCachedThreadPool( int maximumPoolSize,
-            int maximumQueueSize, String threadPrefix ) {
+    public static ExecutorService newBlockingBoundedCachedThreadPool(int maximumPoolSize,
+            int maximumQueueSize, String threadPrefix) {
 
         CachedThreadPoolExecutor executor =
-                new CachedThreadPoolExecutor( maximumPoolSize, maximumQueueSize, threadPrefix );
-        executor.setRejectedExecutionHandler( CountingRejectedExecutionHandler.newCallerRunsPolicy() );
+                new CachedThreadPoolExecutor(maximumPoolSize, maximumQueueSize, threadPrefix);
+        executor.setRejectedExecutionHandler(CountingRejectedExecutionHandler.newCallerRunsPolicy());
         return executor;
     }
 
@@ -145,9 +145,9 @@ public final class SpecialExecutors {
      *            the name prefix for the thread created by this executor.
      * @return a new ExecutorService with the specified configuration.
      */
-    public static ExecutorService newBoundedSingleThreadExecutor( int maximumQueueSize,
-            String threadPrefix ) {
-        return new FastThreadPoolExecutor( 1, maximumQueueSize, Long.MAX_VALUE, TimeUnit.SECONDS,
-                threadPrefix );
+    public static ExecutorService newBoundedSingleThreadExecutor(int maximumQueueSize,
+            String threadPrefix) {
+        return new FastThreadPoolExecutor(1, maximumQueueSize, Long.MAX_VALUE, TimeUnit.SECONDS,
+                threadPrefix);
     }
 }