mirror of
https://github.com/github/codeql.git
synced 2026-02-11 20:51:06 +01:00
Add test for *Pool exclusion
This commit is contained in:
@@ -120,4 +120,16 @@ class Test {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static class TestPool {
|
||||
void lock() {}
|
||||
void unlock() {}
|
||||
}
|
||||
|
||||
void good11() {
|
||||
TestPool pool = new TestPool();
|
||||
pool.lock(); // Should be excluded because of "Pool" suffix
|
||||
f();
|
||||
pool.unlock();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user