-
Notifications
You must be signed in to change notification settings - Fork 114
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
UseStringIsEmptyRule complains when checking String[].length #1031
Comments
@ilyakharlamov/z this project will fix the problem faster if you donate a few dollars to it; just click here and pay via Stripe, it's very fast, convenient and appreciated; thanks a lot! |
@0crat in |
Bug was reported, see §29: +15 point(s) just awarded to @ilyakharlamov/z |
@krzyk assign me, please. |
@0crat assign @zCRUSADERz |
@krzyk The job #1031 assigned to @zCRUSADERz/z, here is why; the budget is 30 minutes, see §4; please, read §8 and §9; if the task is not clear, read this and this; @zCRUSADERz/z is not a member of this project yet, but they can request to join, as §1 explains; there will be no monetary reward for this job |
@ilyakharlamov merged, please close |
@0crat wait for closure |
@zCRUSADERz The impediment for #1031 was registered successfully by @zCRUSADERz/z |
@zCRUSADERz Job #1031 is not in the agenda of @zCRUSADERz/z, can't set impediment |
@ilyakharlamov issue fixed, please close. |
@zCRUSADERz Thanks, closed |
Job #1031 is not in the agenda of @zCRUSADERz/z, can't retrieve data and time of add |
The job #1031 is now out of scope |
Order was finished: +30 point(s) just awarded to @zCRUSADERz/z |
Steps to reproduce:
run
mvn clean install -Pqulice
What's wrong:
PMD: src/main/java/com/mycompany/app/App.java[20-20]: Use String.isEmpty() when checking for empty string (UseStringIsEmptyRule)
We check an array of Strings but not a String.
There is no string length check at all in this code.
There is no such thing as
String[].isEmpty()
either.We check
String[].length
but notString.length()
here.Expected result:
The rule should complain on
String
but should not complain onString[]
.The text was updated successfully, but these errors were encountered: