Remove yang-test
[controller.git] / opendaylight / config / config-manager / src / test / java / org / opendaylight / controller / config / manager / testingservices / parallelapsp / TestingParallelAPSPImpl.java
index 0c29386007f720137364d5a0f4297472c0c1b525..377a1761361123e37e2fdbee29e3743834a4155d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
+ * Copyright (c) 2013, 2017 Cisco Systems, Inc. and others.  All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
@@ -9,23 +9,20 @@ package org.opendaylight.controller.config.manager.testingservices.parallelapsp;
 
 import static com.google.common.base.Preconditions.checkArgument;
 
+import com.google.common.base.Strings;
 import java.io.Closeable;
 import java.io.IOException;
-
 import javax.annotation.concurrent.NotThreadSafe;
-
 import org.opendaylight.controller.config.manager.testingservices.threadpool.TestingThreadPoolIfc;
 
-import com.google.common.base.Strings;
-
 @NotThreadSafe
 public class TestingParallelAPSPImpl implements TestingAPSP, Closeable {
     public static final int MINIMAL_NUMBER_OF_THREADS = 10;
-    private TestingThreadPoolIfc threadPool;
+    private final TestingThreadPoolIfc threadPool;
     private String someParam;
 
-    public TestingParallelAPSPImpl(TestingThreadPoolIfc threadPool,
-            String someParam) {
+    public TestingParallelAPSPImpl(final TestingThreadPoolIfc threadPool,
+            final String someParam) {
         checkArgument(
                 threadPool.getMaxNumberOfThreads() >= MINIMAL_NUMBER_OF_THREADS,
                 "Parameter 'threadPool' has not enough threads");
@@ -49,14 +46,13 @@ public class TestingParallelAPSPImpl implements TestingAPSP, Closeable {
         return threadPool;
     }
 
-    void setSomeParam(String s) {
+    void setSomeParam(final String string) {
         checkArgument(Strings.isNullOrEmpty(someParam) == false,
                 "Parameter 'someParam' is blank");
-        this.someParam = s;
+        this.someParam = string;
     }
 
     public String getSomeParam() {
         return someParam;
     }
-
 }