From 2d381afcd78b61d8791ace22b676e88271b3bdce Mon Sep 17 00:00:00 2001 From: Pamela Dragosh Date: Mon, 13 Aug 2018 14:39:43 -0400 Subject: Fix checkstyle in utils Cleared all the checkstyle in these 2 submodules. Issue-ID: POLICY-881 Change-Id: I248e1894aebf549d5a4f8669a6466ec227d40b55 Signed-off-by: Pamela Dragosh --- .../java/org/onap/policy/common/utils/time/TestTimeMultiTest.java | 5 +++-- .../test/java/org/onap/policy/common/utils/time/TestTimeTest.java | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'utils-test/src/test/java/org/onap') diff --git a/utils-test/src/test/java/org/onap/policy/common/utils/time/TestTimeMultiTest.java b/utils-test/src/test/java/org/onap/policy/common/utils/time/TestTimeMultiTest.java index 206ab5f1..311e276d 100644 --- a/utils-test/src/test/java/org/onap/policy/common/utils/time/TestTimeMultiTest.java +++ b/utils-test/src/test/java/org/onap/policy/common/utils/time/TestTimeMultiTest.java @@ -22,6 +22,7 @@ package org.onap.policy.common.utils.time; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; + import java.util.ArrayList; import java.util.List; import java.util.concurrent.Semaphore; @@ -29,7 +30,7 @@ import java.util.concurrent.TimeUnit; import org.junit.Test; /** - * + * Class to test TestTimeMulti. */ public class TestTimeMultiTest { @@ -46,7 +47,7 @@ public class TestTimeMultiTest { ttm = new TestTimeMulti(NTHREADS); done = new Semaphore(0); - long tbeg = ttm.getMillis(); + final long tbeg = ttm.getMillis(); // create threads List threads = new ArrayList<>(NTHREADS); diff --git a/utils-test/src/test/java/org/onap/policy/common/utils/time/TestTimeTest.java b/utils-test/src/test/java/org/onap/policy/common/utils/time/TestTimeTest.java index 12086657..3e7897e9 100644 --- a/utils-test/src/test/java/org/onap/policy/common/utils/time/TestTimeTest.java +++ b/utils-test/src/test/java/org/onap/policy/common/utils/time/TestTimeTest.java @@ -22,6 +22,7 @@ package org.onap.policy.common.utils.time; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; + import org.junit.Test; public class TestTimeTest { @@ -31,7 +32,7 @@ public class TestTimeTest { TestTime tm = new TestTime(); TestTime tm2 = new TestTime(); - long treal = System.currentTimeMillis(); + final long treal = System.currentTimeMillis(); long tcur = tm.getMillis(); assertEquals(tcur, tm.getDate().getTime()); -- cgit 1.2.3-korg