-
Notifications
You must be signed in to change notification settings - Fork 8
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
414 resolve light warnings for mylyn bugzilla connector #426
Conversation
There was a problem hiding this 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(); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
No description provided.