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

SCT-33 Sonar Cleanup #43

Closed
wants to merge 1 commit into from
Closed

SCT-33 Sonar Cleanup #43

wants to merge 1 commit into from

Conversation

cppwfs
Copy link
Collaborator

@cppwfs cppwfs commented Dec 15, 2015

  • Removes all Critical and Major notifications from Spring Cloud Task.
  • Removes unused local variables
  • Removes What it saw as redundant null checks and subsequent complexity alert.

resolves #33

* Removes all Critical and Major notifications from Spring Cloud Task.
* Removes unused local variables
* Removes What it saw as redundant null checks and subsequent complexity alert.

resolves #33
@cppwfs cppwfs added the in pr label Dec 15, 2015
@mminella mminella self-assigned this Dec 16, 2015
}
private TaskConfigurer getDefaultConfigurer(Collection<TaskConfigurer> configurers) {
boolean isDataSourceConfigured = (dataSources != null && !dataSources.isEmpty())
? true : false;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't this be shortened to just:

boolean isDataSourceConfigured = dataSources != null && !dataSources.isEmpty()

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DOH!

@mminella
Copy link
Contributor

Merged as 5c3795e

@mminella mminella closed this Dec 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clean up Sonar Issues
3 participants