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

CommandLine 'toProcess.length() == 0' can be replaced with 'toProcess.isEmpty()' #3199

Closed
manusa opened this issue Jun 26, 2024 · 0 comments · Fixed by #3215
Closed

CommandLine 'toProcess.length() == 0' can be replaced with 'toProcess.isEmpty()' #3199

manusa opened this issue Jun 26, 2024 · 0 comments · Fixed by #3215
Labels
first-timers-only Is this your first time contributing? This could be a good place to start! good first issue Good for newcomers
Milestone

Comments

@manusa
Copy link
Member

manusa commented Jun 26, 2024

Description

The call to String.length can be replaced with isEmpty in CommandLine.

The following line:

if (toProcess == null || toProcess.length() == 0) {

should be changed to:

        if (toProcess == null || toProcess.isEmpty()) {

🔴 Before you start 🔴

👇 👇 👇 👇 👇 👇 👇 👇 👇 👇 👇 👇 👇 👇 👇 👇

Make sure you read the contributing guide first.

Pay special attention to the ECA agreement section and the requirement to sign-off your commit.

This is a first-timers-only issue. These issues are especially created for contributors who are contributing to the project for the first time.

If you have already contributed to this project in the past, please don't ask to be assigned one of these issues and look for good-first-issues or help-wanted issues instead in order to continue you contributor journey in the project.

@manusa manusa added good first issue Good for newcomers first-timers-only Is this your first time contributing? This could be a good place to start! labels Jun 26, 2024
@manusa manusa added this to the 1.17.0 milestone Jul 4, 2024 — with automated-tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
first-timers-only Is this your first time contributing? This could be a good place to start! good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant