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

Cleanup Code Style Issues #7238

Merged
merged 11 commits into from
Aug 12, 2019

Conversation

larsgrefer
Copy link
Contributor

No description provided.

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.
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Aug 8, 2019
@rwinch rwinch self-assigned this Aug 9, 2019
@rwinch rwinch added type: enhancement A general enhancement type: task A general task and removed status: waiting-for-triage An issue we've not yet triaged labels Aug 9, 2019
@rwinch rwinch added this to the 5.2.0.RC1 milestone Aug 9, 2019
Copy link
Member

@rwinch rwinch left a 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.

@larsgrefer
Copy link
Contributor Author

Seems like checkstyle found even more redundant modifiers 😆

@larsgrefer larsgrefer force-pushed the cleanup/codeStyleIssues branch from dcd3c02 to ec6ca97 Compare August 11, 2019 19:09
@rwinch rwinch merged commit c1db1aa into spring-projects:master Aug 12, 2019
@rwinch
Copy link
Member

rwinch commented Aug 12, 2019

Thanks for the PR! This is now merged into master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement type: task A general task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants