-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Fix issues identified with static code analysis #5351
Fix issues identified with static code analysis #5351
Conversation
Actually, the only thing that changed is the folder, from The package remained the same, so it's a non-breaking change for sure. |
Thanks for this! Although the changes do look good and seem perfectly reasonable (when looking at them quickly), perhaps they are bit too broad? |
You're right, I'll narrow it down to the essential changes and leave the minor fixes aside. |
f081078
to
d0db97f
Compare
d0db97f
to
920325f
Compare
@@ -115,7 +115,7 @@ public Result parse(MethodInfo methodInfo) { | |||
boolean allIgnoreCase = false; | |||
if (afterByPart.contains(ALL_IGNORE_CASE)) { | |||
allIgnoreCase = true; | |||
afterByPart = afterByPart.replaceAll(ALL_IGNORE_CASE, ""); | |||
afterByPart = afterByPart.replace(ALL_IGNORE_CASE, ""); |
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.
This prevents a regex pattern compilation.
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.
Interesting!
Done! This PR is mostly about unclosed InputStreams now. |
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.
Thanks @gwenneg!
Thanks for reviewing this :) |
As stated in the title, I fixed some issues identified during static code analysis.