Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix AsyncHttpEncryptionAwareConduitFactory thread leak on WinRMService close #85
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
Uh oh!
There was an error while loading. Please reload this page.
Fix AsyncHttpEncryptionAwareConduitFactory thread leak on WinRMService close #85
Changes from all commits
fe3c7c609978f8d3aa27a08e8b60File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing
Check warning on line 306 in src/main/java/org/metricshub/winrm/service/WinRMService.java
VA_FORMAT_STRING_USES_NEWLINE
Raw output
Check warning on line 649 in src/main/java/org/metricshub/winrm/service/WinRMService.java
DCN_NULLPOINTER_EXCEPTION
Raw output
According to SEI Cert rule ERR08-J [https://wiki.sei.cmu.edu/confluence/display/java/ERR08-J.+Do+not+catch+NullPointerException+or+any+of+its+ancestors] NullPointerException should not be caught. Handling NullPointerException is considered an inferior alternative to null-checking. This non-compliant code catches a NullPointerException to see if an incoming parameter is null: boolean hasSpace(String m) { try { String ms[] = m.split(" "); return names.length != 1; } catch (NullPointerException e) { return false; } } A compliant solution would use a null-check as in the following example: boolean hasSpace(String m) { if (m == null) return false; String ms[] = m.split(" "); return names.length != 1; }Check warning on line 731 in src/main/java/org/metricshub/winrm/service/WinRMService.java
Code Style EmptyControlStatement
Check warning on line 822 in src/main/java/org/metricshub/winrm/service/WinRMService.java
Code Style EmptyControlStatement
Check warning on line 845 in src/main/java/org/metricshub/winrm/service/WinRMService.java
NP_LOAD_OF_KNOWN_NULL_VALUE
Raw output
Check warning on line 183 in src/main/java/org/metricshub/winrm/service/client/WinRMInvocationHandler.java
EI_EXPOSE_REP
Raw output
Check notice on line 558 in src/main/java/org/metricshub/winrm/service/client/WinRMInvocationHandler.java
Code Style UselessParentheses
Uh oh!
There was an error while loading. Please reload this page.