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

[ pulsar-ci-test] Fix checkstyle bookieRackAffinityMapping error #13772

Merged

Conversation

liudezhi2098
Copy link
Contributor

Motivation
fix checkstyle bookieRackAffinityMapping error in pulsar-ci-test (group2)
image

Documentation

  • no-need-doc

@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Jan 16, 2022
@liudezhi2098 liudezhi2098 changed the title Fix checkstyle bookieRackAffinityMapping error in pulsar-ci-test [ pulsar-ci-test] Fix checkstyle bookieRackAffinityMapping error Jan 16, 2022
@liudezhi2098
Copy link
Contributor Author

/pulsarbot run-failure-checks

@@ -161,7 +161,7 @@ private String getRack(String bookieAddress) {
}

if (bi != null
&& !Strings.isNullOrEmpty(bi.getRack())
&& !com.google.api.client.util.Strings.isNullOrEmpty(bi.getRack())
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can use "org.apache.commons.lang3.StringUtils#isEmpty" to avoid this checkstyle issue.

@liudezhi2098
Copy link
Contributor Author

/pulsarbot run-failure-checks

@gaozhangmin gaozhangmin mentioned this pull request Jan 17, 2022
3 tasks
@liudezhi2098
Copy link
Contributor Author

/pulsarbot run-failure-checks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-not-needed Your PR changes do not impact docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants