SONARJAVA-6421 Implement S9352: Bean autowiring ambiguity should be resolved using "@Qualifier" or "@Primary" - #6073
Conversation
32778b7 to
001cfdb
Compare
This comment has been minimized.
This comment has been minimized.
878ad6a to
a7b6ed9
Compare
97f3d89 to
0c6d6e7
Compare
21eab85 to
f8824cf
Compare
82217dc to
bb7d327
Compare
Code Review ✅ Approved 12 resolved / 12 findingsImplements S9352 rule for detecting bean autowiring ambiguity, integrating with ✅ 12 resolved✅ Quality: Profile filtering logic, incl. the claimed FP fix, has no test
✅ Bug: Qualifier/field name matching profiled bean is a false positive
✅ Quality: Sensor runs checks and creates issues without an active-rule check
✅ Quality: Dead condition: effectiveCandidates.size() > 1 is always true there
✅ Quality: SAME_THREAD on the IT base class serializes unrelated IT classes
...and 7 more resolved from earlier reviews 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 |
…e profile-filtered one
…d-injection scenarios
…s-module scenarios
bb7d327 to
70debad
Compare
|
asya-vorobeva
left a comment
There was a problem hiding this comment.
LGTM! Thanks a lot for your hard work 🌻
…esolved using "@qualifier" or "@primary" (#6073)


Summary
AmbiguousDependencyCheck) using theSpringContextModel/TypeToDependenciesIndexbuilt by the model-extension branch, plus the@Profileextraction added on top of it.SpringContextModelSensorandJavaFrontend.