Skip to content

Add default protected constructor for HttpClientBuilder - #90

Merged
chanchiem merged 1 commit into
aws:masterfrom
chanchiem:httpclientbuilder-patch
Aug 12, 2019
Merged

Add default protected constructor for HttpClientBuilder#90
chanchiem merged 1 commit into
aws:masterfrom
chanchiem:httpclientbuilder-patch

Conversation

@chanchiem

Copy link
Copy Markdown
Contributor

Issue #, if available:
#89

Description of changes:
Added protected constructor. The parent Apache HttpClientBuilder implements a protected constructor as well. There was a bug that allowed customers to instantiate our HttpClientBuilder through an implicitly created public constructor. This is a problem because then the recorder instance will be null.

Testing:
Wrote a unit test to ensure that the constructor has the protected modifier.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@chanchiem
chanchiem merged commit 4907db2 into aws:master Aug 12, 2019
@chanchiem
chanchiem deleted the httpclientbuilder-patch branch August 12, 2019 17:09
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