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

Simply JinjavaConfig construction #528

Merged
merged 1 commit into from
Nov 10, 2020

Conversation

jasmith-hs
Copy link
Contributor

The JinjavaConfig constructor had too many parameters. This replaces that constructor with one that just takes in a Builder. It is both easier to read and it doesn't violate checkstyle (which throws a style violation after 20+ parameters).

Also, many of the values in that constructor are the default values in the Builder class so they can be omitted, which removes a fair bit of duplicate code.

@jasmith-hs jasmith-hs requested a review from boulter November 10, 2020 20:31
Copy link
Contributor

@boulter boulter left a comment

Choose a reason for hiding this comment

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

This is great. thanks.

@jasmith-hs jasmith-hs merged commit d05988e into HubSpot:master Nov 10, 2020
@jasmith-hs jasmith-hs deleted the jinjava-config-builder branch November 10, 2020 22:04
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