Skip to content

Simply JinjavaConfig construction#528

Merged
jasmith-hs merged 1 commit into
HubSpot:masterfrom
jasmith-hs:jinjava-config-builder
Nov 10, 2020
Merged

Simply JinjavaConfig construction#528
jasmith-hs merged 1 commit into
HubSpot:masterfrom
jasmith-hs:jinjava-config-builder

Conversation

@jasmith-hs

Copy link
Copy Markdown
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

@boulter boulter left a comment

Copy link
Copy Markdown
Contributor

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