Skip to content

Commit 42cbe07

Browse files
committed
Specify what lock types are considered in qhelp
1 parent 516b84b commit 42cbe07

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

java/ql/src/Likely Bugs/Concurrency/UnreleasedLock.qhelp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ it multiple times, for example <code>java.util.concurrent.locks.ReentrantLock</c
1111
then the number of locks must match the number of unlocks in order to fully
1212
release the lock.
1313
</p>
14+
<p>
15+
Any class that has both <code>lock</code> and <code>unlock</code> methods is
16+
considered a lock type. However, classes with names ending in "Pool" are excluded,
17+
as they typically manage a collection of resources.
18+
</p>
1419
</overview>
1520

1621
<recommendation>

0 commit comments

Comments
 (0)