Skip to content
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 unnecessary static keywords from methods in EventPublishingRepositoryProxyPostProcessor #2920

Closed
wants to merge 1 commit into from

Conversation

shin-mallang
Copy link
Contributor

I see no reason why isEventPublishingMethod(), isSaveMethod(), and isDeleteMethod() should be static methods.
They are only used within the invoke() of the EventPublishingMethodInterceptor.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Aug 31, 2023
@shin-mallang shin-mallang changed the title Remove unnecessary static keywords from methods in 'EventPublishingRepositoryProxyPostProcessor' Remove unnecessary static keywords from methods in EventPublishingRepositoryProxyPostProcessor Aug 31, 2023
@mp911de
Copy link
Member

mp911de commented Aug 31, 2023

These are static because they do not access state from the instance.

@mp911de mp911de closed this Aug 31, 2023
@mp911de mp911de added status: declined A suggestion or change that we don't feel we should currently apply and removed status: waiting-for-triage An issue we've not yet triaged labels Aug 31, 2023
@shin-mallang
Copy link
Contributor Author

I see that was your intention.
I apologize for this PR.😥

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: declined A suggestion or change that we don't feel we should currently apply
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants