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 code smells #727

Merged
merged 2 commits into from
Jan 9, 2024
Merged

reduce code smells #727

merged 2 commits into from
Jan 9, 2024

Conversation

jjjasper
Copy link
Contributor

@jjjasper jjjasper commented Jan 4, 2024

Fix one new code smell introduced by me.
Fix some low-hanging fruits code smells.

@jjjasper jjjasper force-pushed the chore/fix-sonar-complaints branch from ae4a88a to a4085fa Compare January 4, 2024 14:09
@jjjasper jjjasper marked this pull request as ready for review January 4, 2024 14:10
try (OutputStream outputStream = new ByteArrayOutputStream()) {
render.render(changedOpenApi, new OutputStreamWriter(outputStream));
return outputStream.toString();
} catch (IOException e) {
throw new RuntimeException(e);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should not throw generic RuntimeException

Copy link

sonarqubecloud bot commented Jan 4, 2024

@jjjasper jjjasper requested a review from bartveenstra January 8, 2024 09:47
@jjjasper jjjasper merged commit c8a9a96 into main Jan 9, 2024
3 checks passed
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.

1 participant