We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f1ad0f commit 516b84bCopy full SHA for 516b84b
java/ql/test/query-tests/UnreleasedLock/UnreleasedLock.java
@@ -120,4 +120,16 @@ void bad10() {
120
}
121
122
123
+
124
+ static class TestPool {
125
+ void lock() {}
126
+ void unlock() {}
127
+ }
128
129
+ void good11() {
130
+ TestPool pool = new TestPool();
131
+ pool.lock(); // Should be excluded because of "Pool" suffix
132
+ f();
133
+ pool.unlock();
134
135
0 commit comments