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

Reduce exception construction #538

Merged
merged 1 commit into from
Nov 25, 2019
Merged

Conversation

taer
Copy link
Contributor

@taer taer commented Nov 22, 2019

This was creating the exception regardless of whether it needed it or not. This uses the supplier interface to just construct it if needed

This was creating the exception regardless of whether it needed it or not. This uses the supplier interface to just
construct it if needed
Copy link
Contributor

@mikkokar mikkokar left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution!

@mikkokar mikkokar merged commit 70d732f into ExpediaGroup:master Nov 25, 2019
@taer taer deleted the monoErrorSupplier branch November 25, 2019 15:14
OwenLindsell pushed a commit to OwenLindsell/styx that referenced this pull request Nov 26, 2019
Create an exception lazily only when necessary.
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