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

Rename all methods in all Getters to use the get*() naming scheme #7619

Merged

Conversation

mateuszrzeszutek
Copy link
Member

Resolves #6562

This PR only contains renames; the actual content is in the *Getter interfaces, the rest of changes is just IntelliJ doing its job.

@mateuszrzeszutek mateuszrzeszutek requested a review from a team as a code owner January 19, 2023 13:27
Comment on lines +32 to +33
throw new UnsupportedOperationException(
"This method is deprecated and will be removed in the subsequent release.");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what do you think of using this pattern everywhere instead?

Suggested change
throw new UnsupportedOperationException(
"This method is deprecated and will be removed in the subsequent release.");
return getCodeClass(request);

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, this would cause a recursive A->B->A->... situation; where if you forget to implement one of these methods you get a stack overflow error.

Copy link
Member

@trask trask left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thx for doing this ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Getter naming
2 participants