Merge pull request #21226 from owen-mc/java/update-qhelp-unrelease-lock

Java: Improve qhelp for `java/unreleased-lock` and add lock type exclusion
This commit is contained in:
Owen Mansel-Chan
2026-01-28 09:46:31 +00:00
committed by GitHub
4 changed files with 29 additions and 4 deletions

View File

@@ -0,0 +1,4 @@
---
category: minorAnalysis
---
* The query `java/unreleased-lock` no longer applies to lock types with names ending in "Pool", as these typically manage a collection of resources and the `lock` and `unlock` methods typically only lock one resource at a time. This may lead to a reduction in false positives.