SONARJAVA-6912 Recognize @Inject constructor selection - #6091
Conversation
Code Review ✅ Approved 4 resolved / 4 findingsExtends S6829 to recognize ✅ 4 resolved✅ Bug: S6829 now accepts @Inject but S6818 still only sees @Autowired
✅ Quality: Shared INJECTION_ANNOTATIONS not applied to remaining duplicate lists
✅ Quality: S3305 scope widened to @Inject but its RSPEC/description untouched
✅ Edge Case: required=false default-value exception defeated by co-annotation
OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |
|




Summary
Updates S6829 so Spring components with a constructor selected by javax.inject.Inject or jakarta.inject.Inject are compliant. The issue message and generated rule description now describe both supported annotations.
RSPEC PR: https://github.com/SonarSource/rspec/pull/8141
Changes