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

414 resolve light warnings for mylyn bugzilla connector #426

Merged

Conversation

gnl42
Copy link
Contributor

@gnl42 gnl42 commented Feb 5, 2024

No description provided.

@gnl42 gnl42 self-assigned this Feb 5, 2024
@gnl42 gnl42 linked an issue Feb 5, 2024 that may be closed by this pull request
@akurtakov akurtakov merged commit 4af9946 into main Feb 5, 2024
4 checks passed
Copy link
Contributor

@ruspl-afed ruspl-afed left a comment

Choose a reason for hiding this comment

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

@akurtakov was faster, but please consider my comments @gnl42

@@ -58,8 +58,6 @@ public static BufferedReader clean(Reader in, File tempFile) {
content.append(token.toString());
}
}
content.flush();
Copy link
Contributor

Choose a reason for hiding this comment

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

I would keep this statement

Copy link
Contributor Author

Choose a reason for hiding this comment

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

close() does a flush

try (in) {
inCleaned = XmlCleaner.clean(in, tempFile);
if (tempFile != null) {
tempFile.delete();
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure why this statement was needed right here, but in refactored version it is moved to another location for some reason.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It made more sense to move the delete() to the final block

@ruspl-afed ruspl-afed deleted the 414-resolve-light-warnings-for-mylyn-bugzilla-connector branch February 8, 2024 09:19
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.

Resolve "light" warnings for Mylyn Bugzilla Connector
3 participants