Remove unneeded imports 96/107796/1
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 11 Sep 2023 16:38:30 +0000 (18:38 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 11 Sep 2023 16:38:53 +0000 (18:38 +0200)
We are already importing TimeUnit, do not also import its fields.

Change-Id: Ie964dabfd71c8d3a7bfb191a68e22c1844cde9ed
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
bundles-test-lib/src/main/java/org/opendaylight/odlparent/bundlestest/lib/TestBundleDiag.java

index 2b293bac5b34d8a1a39df802f0e87a049ab1ba75..cbe21e1bee9100e0f190740cae095c96d64f7bb2 100644 (file)
@@ -7,9 +7,6 @@
  */
 package org.opendaylight.odlparent.bundlestest.lib;
 
-import static java.util.concurrent.TimeUnit.MILLISECONDS;
-import static java.util.concurrent.TimeUnit.SECONDS;
-
 import java.util.concurrent.TimeUnit;
 import java.util.function.BiConsumer;
 import org.apache.karaf.bundle.core.BundleService;
@@ -65,8 +62,8 @@ public class TestBundleDiag {
         LOG.info("checkBundleDiagInfos() started...");
         try {
             Awaitility.await("checkBundleDiagInfos")
-                .pollDelay(0, MILLISECONDS)
-                .pollInterval(1, SECONDS)
+                .pollDelay(0, TimeUnit.MILLISECONDS)
+                .pollInterval(1, TimeUnit.SECONDS)
                 .atMost(timeout, timeoutUnit)
                     .conditionEvaluationListener(condition -> awaitingListener.accept(
                             new TimeInfo(condition.getElapsedTimeInMS(), condition.getRemainingTimeInMS()),