-
Notifications
You must be signed in to change notification settings - Fork 724
SONARJAVA-6412 Implement Visitor for grouping beans per types #5987
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
NoemieBenard
merged 13 commits into
epic-SONARJAVA-6237
from
nb/sonarjava-6412-type-to-bean-names-index
Aug 25, 2026
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
354757d
Add test for name resolution with qualifier when there are multiple b…
NoemieBenard e302125
Implement visitor for grouping beans of the same type
NoemieBenard 84e060a
Write tests for new visitor
NoemieBenard 841f2a3
Address review comments
NoemieBenard 84b2e9a
Improve test coverage
NoemieBenard 0cfc9c4
Group similar tests into a single parameterized one
NoemieBenard b2c8041
Remove old sample file
NoemieBenard 1c46239
Update tests
NoemieBenard eb384f1
Extract helper methods into SpringUtils
NoemieBenard 2dc9552
Move implementation to BeanDefinitionGatherer
NoemieBenard 1cbb1b9
Fix single constructor injection handling
NoemieBenard ed43738
Fix cache for type index
NoemieBenard 2f87eb6
Improve tests
NoemieBenard File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
java-frontend/src/test/files/springcontext/ComponentImplementingInterface.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| package checks.spring.context; | ||
|
|
||
| import org.springframework.context.ApplicationContext; | ||
| import org.springframework.context.ApplicationContextAware; | ||
| import org.springframework.stereotype.Component; | ||
|
|
||
| @Component | ||
| class ComponentImplementingInterface implements ApplicationContextAware { | ||
|
|
||
| @Override | ||
| public void setApplicationContext(ApplicationContext ctx) { | ||
| // not needed for test | ||
| } | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.