Enable PMD rule SimplifiedTernary and fix violations
This commit is contained in:
parent
a07fc132d2
commit
09a9c1a104
3 changed files with 2 additions and 3 deletions
|
|
@ -882,7 +882,7 @@ public abstract class BExpressionContext implements IByteArrayUnifier {
|
|||
}
|
||||
|
||||
public final boolean isLookupIdxUsed(int idx) {
|
||||
return idx < lookupIdxUsed.length ? lookupIdxUsed[idx] : false;
|
||||
return idx < lookupIdxUsed.length && lookupIdxUsed[idx];
|
||||
}
|
||||
|
||||
public final void setAllTagsUsed() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue