Fix Sonar and CheckStyle warnings
[nonrtric.git] / policy-agent / src / test / java / org / oransc / policyagent / repository / LockTest.java
index ee7e04f..5c1cc14 100644 (file)
@@ -41,15 +41,16 @@ public class LockTest {
         try {
             Thread.sleep(100);
         } catch (InterruptedException e) {
+            // Do nothing.
         }
     }
 
     private void asynchUnlock(Lock lock) {
-        Thread t = new Thread(() -> {
+        Thread thread = new Thread(() -> {
             sleep();
             lock.unlockBlocking();
         });
-        t.start();
+        thread.start();
     }
 
     @Test