-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Cleanup Code Style Issues #7238
Cleanup Code Style Issues #7238
Conversation
Reports methods and constructors where constant charset String literal is used (like "UTF-8") which could be replaced with a predefined Charset object like StandardCharsets.UTF_8. This may work a little bit faster, because charset lookup becomes unnecessary. Also catching UnsupportedEncodingException may become unnecessary as well. In this case the catch block will be removed automatically.
Reports any type parameters and wildcard type arguments explicitly declared to extend java.lang.Object.
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 for the PR @larsgrefer! Overall it looks good, but it appears that there are some checkstyle issues still. You can run ./gradlew checkstyleMain checkstyleTest
to get the results.
Seems like checkstyle found even more redundant modifiers 😆 |
dcd3c02
to
ec6ca97
Compare
Thanks for the PR! This is now merged into master |
No description provided.