We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a7bea9 commit 7993fa8Copy full SHA for 7993fa8
affinity/src/test/java/net/openhft/affinity/AffinityLockDumpLocksTest.java
@@ -29,6 +29,7 @@ public void dumpLocksListsThreadsHoldingLocks() throws Exception {
29
String name = "worker-" + i;
30
Thread t = new Thread(() -> {
31
try (AffinityLock lock = AffinityLock.acquireLock()) {
32
+ supressUnusedWarning(lock);
33
acquired.countDown();
34
release.await();
35
} catch (InterruptedException e) {
@@ -51,4 +52,8 @@ public void dumpLocksListsThreadsHoldingLocks() throws Exception {
51
52
t.join();
53
}
54
55
+
56
+ static void supressUnusedWarning(AutoCloseable c) {
57
+ // do nothing
58
+ }
59
0 commit comments