-
Notifications
You must be signed in to change notification settings - Fork 41.4k
Remove unused method parameters #25986
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
Remove unused method parameters #25986
Conversation
Test failure seems unrelated. |
Nice! |
I've just seen the same failure. I believe it's due to this change in Spring Security. I've reached out to the Security team for some guidance as I'm not sure if the change is intentional and if we need to add |
The |
private void onApplicationPreparedEvent() { | ||
finish(); | ||
} | ||
|
||
private void onApplicationFailedEvent(ApplicationFailedEvent event) { | ||
private void onApplicationFailedEvent() { | ||
finish(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems a bit ambiguous to call it a handler function for the event by deleting the event parameter.
Wouldn't it be better to get rid of the wrapper function and call finish() directly in onApplicationEvent()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thought about that actually, but I liked the clear separation of things here. For me they are still the containers for the logic that should happen in case of the respective event and just share the common finish()
call - regardless of the fact that they don't need the parameter. But I have no strong feelings for either option. Let's see what the team thinks and I'll gladly change to whatever is preferred.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer it as currently proposed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the considering.
Hi,
this PR removes a couple unused method parameters.
Cheers,
Christoph