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

Refactor: remove pointless generics #2379

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Mahoney
Copy link
Collaborator

@Mahoney Mahoney commented Sep 15, 2023

<P> serves no purpose in these methods beyond Object, it doesn't
affect the accepted types or the return type of the method.

References

N/A

Submitter checklist

  • Recommended: Join WireMock Slack to get any help in #help-contributing or a project-specific channel like #wiremock-java
  • The PR request is well described and justified, including the body and the references
  • The PR title represents the desired changelog entry
  • The repository's code style is followed (see the contributing guide)

@Mahoney Mahoney requested a review from a team as a code owner September 15, 2023 14:49
`<P>` serves no purpose in these methods beyond Object, it doesn't
affect the accepted types or the return type of the method.
@Mahoney
Copy link
Collaborator Author

Mahoney commented Sep 20, 2023

@oleg-nenashev I imagine this is binary compatible, as generics are really just a compile time thing?

Copy link
Member

@oleg-nenashev oleg-nenashev left a comment

Choose a reason for hiding this comment

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

@Mahoney I would prefer to avoid it as long as the change is not source-compatible.. It may also, in theory, lead to unexpected overrides in API consumer classes https://wiki.eclipse.org/Evolving_Java-based_APIs_2#Turning_non-generic_types_and_methods_into_generic_ones

@oleg-nenashev oleg-nenashev added the breaking Breaking change label Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking Breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants