Code Review
/
nonrtric.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix Sonar and CheckStyle warnings
[nonrtric.git]
/
policy-agent
/
src
/
test
/
java
/
org
/
oransc
/
policyagent
/
repository
/
LockTest.java
diff --git
a/policy-agent/src/test/java/org/oransc/policyagent/repository/LockTest.java
b/policy-agent/src/test/java/org/oransc/policyagent/repository/LockTest.java
index
ee7e04f
..
5c1cc14
100644
(file)
--- a/
policy-agent/src/test/java/org/oransc/policyagent/repository/LockTest.java
+++ b/
policy-agent/src/test/java/org/oransc/policyagent/repository/LockTest.java
@@
-41,15
+41,16
@@
public class LockTest {
try {
Thread.sleep(100);
} catch (InterruptedException e) {
try {
Thread.sleep(100);
} catch (InterruptedException e) {
+ // Do nothing.
}
}
private void asynchUnlock(Lock lock) {
}
}
private void asynchUnlock(Lock lock) {
- Thread t = new Thread(() -> {
+ Thread t
hread
= new Thread(() -> {
sleep();
lock.unlockBlocking();
});
sleep();
lock.unlockBlocking();
});
- t.start();
+ t
hread
.start();
}
@Test
}
@Test