Skip to content

Add ThreadLocal scoped values review#11

Merged
JuanTorchia merged 1 commit into
masterfrom
issue-10-threadlocal-scoped-values-review
Apr 23, 2026
Merged

Add ThreadLocal scoped values review#11
JuanTorchia merged 1 commit into
masterfrom
issue-10-threadlocal-scoped-values-review

Conversation

@JuanTorchia

Copy link
Copy Markdown
Owner

Summary

  • Add THREAD_LOCAL source pattern detection to the textual scanner.
  • Report direct ThreadLocal usage as a Java 21 -> 25 scoped-values review candidate.
  • Keep the finding advisory: CONCURRENCY / INFO, no automatic rewrite recommendation.
  • Add scanner and analyzer coverage for positive and negative transitions.
  • Document the implementation in the engineering log.

Closes #10

Verification

  • mvn -pl analyzer-core -Dtest=SourcePatternScannerTest test -> 4 tests passed
  • mvn -pl analyzer-core test -> 20 tests passed
  • mvn test -> 37 tests passed

@JuanTorchia JuanTorchia merged commit e2696af into master Apr 23, 2026
2 checks passed
@JuanTorchia JuanTorchia deleted the issue-10-threadlocal-scoped-values-review branch April 23, 2026 01:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add ThreadLocal to scoped values review rule

1 participant