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

Fix raw type warnings when extending a builder #1101

Merged

Conversation

ddcruver
Copy link
Contributor

@ddcruver ddcruver commented Feb 24, 2020

Existing inner class builders did not define a type so they could be inherited but whenever you use the builder you would get a IDE/code scanner warning about using a raw type.

This makes the existing builder abstract and adds Base to the end. All classes extending this class would inherit from this "Base" builder.

A concrete builder is created which extends the "Base" builder and resolves the generic type.

…. The "base" builder is used for inheritence whereas the concrete builder is used for everyday usage.
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.

2 participants