You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
quick fix to remove unnecessary @Autowired appears twice #1106
I have a simple Rest Service guide project created and added an @Autowired constructor to the GreetingController. It is flagged with a warning, but invoking the quick fix popup, the remove unnecessary @Autowired appears twice.
This has a timing component to it. If you invoke the quick fixes quickly after the warning appears, there is only one quick fix showing up. But invoking the quick fix popup again, you will see the second quick fix appearing.
The same happens for the validation / quick fix that flags unnecessary public modifiers for @Bean methods, where all three quick fixes (remove, remove in file, remove in project) appear twice as well in the quick fix popup.
@martinlippert can you paste the screenshot of the popup? It's not the hover and not the dialog you get when invoken quick fix from the problems view... It is the shell that pops up when you click on an icon in the gutter, correct?
Activity
martinlippert commentedon Sep 5, 2023
This has a timing component to it. If you invoke the quick fixes quickly after the warning appears, there is only one quick fix showing up. But invoking the quick fix popup again, you will see the second quick fix appearing.
martinlippert commentedon Sep 5, 2023
The same happens for the validation / quick fix that flags unnecessary
publicmodifiers for@Beanmethods, where all three quick fixes (remove, remove in file, remove in project) appear twice as well in the quick fix popup.BoykoAlex commentedon Sep 5, 2023
@martinlippert can you paste the screenshot of the popup? It's not the hover and not the dialog you get when invoken quick fix from the problems view... It is the shell that pops up when you click on an icon in the gutter, correct?
martinlippert commentedon Sep 5, 2023
I hit Cmd-1 from within the editor with the cursor placed at the first character of the annotation
BoykoAlex commentedon Sep 5, 2023
Fixed with e79da39, unit tested with 2a397ae