Enable PMD rule SimplifyBooleanReturns and fix violations
This commit is contained in:
parent
5f942cc458
commit
41d25cd523
3 changed files with 2 additions and 9 deletions
|
|
@ -141,10 +141,7 @@ public class CompactLongSet {
|
|||
n = nn;
|
||||
}
|
||||
}
|
||||
if (a[n] == id) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
return a[n] == id;
|
||||
}
|
||||
|
||||
protected void moveToFrozenArray(long[] faid) {
|
||||
|
|
|
|||
|
|
@ -61,10 +61,7 @@ public class FrozenLongSet extends CompactLongSet {
|
|||
}
|
||||
offset >>= 1;
|
||||
}
|
||||
if (a[n] == id) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
return a[n] == id;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue