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

Avoid unnecessary exception wrapping in NativeTestExtension.throwBootFailureException #16440

Merged
merged 1 commit into from
Apr 12, 2021

Conversation

gsmet
Copy link
Member

@gsmet gsmet commented Apr 12, 2021

Looks like a detail but by doing this we get rid of one level of nesting in most cases.

(noticed while trying to improve the bot situation)

@@ -151,10 +151,15 @@ public void postProcessTestInstance(Object testInstance, ExtensionContext contex
}
}

private void throwBootFailureException() {
private void throwBootFailureException() throws Exception {
Copy link
Member Author

Choose a reason for hiding this comment

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

Note that the method calling this is already throwing Exception so we are perfectly safe doing it here.

@geoand geoand added the triage/waiting-for-ci Ready to merge when CI successfully finishes label Apr 12, 2021
@gsmet gsmet merged commit 0487ff2 into quarkusio:main Apr 12, 2021
@quarkus-bot quarkus-bot bot added this to the 2.0 - main milestone Apr 12, 2021
@quarkus-bot quarkus-bot bot removed the triage/waiting-for-ci Ready to merge when CI successfully finishes label Apr 12, 2021
@gsmet gsmet modified the milestones: 2.0 - main, 1.13.2.Final Apr 13, 2021
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