| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
This PR fixes a false positive in the StartInConstructor query by recognizing that classes with only private constructors cannot be subclassed, making thread starts in their constructors safe.
Key changes:
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| java/ql/src/Likely Bugs/Concurrency/StartInConstructor.ql | Enhanced query logic to recognize classes with all-private constructors as non-extendable |
| java/ql/test/query-tests/StartInConstructor/Test.java | Added test case for class with private constructors that starts a thread |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Quick drive-by FP fix found while triaging autofixes.