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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -31,7 +31,6 @@
|
|||
<exclude name="PreserveStackTrace" />
|
||||
<exclude name="PrimitiveWrapperInstantiation" />
|
||||
<exclude name="ReturnEmptyCollectionRatherThanNull" />
|
||||
<exclude name="SimplifyBooleanReturns" />
|
||||
<exclude name="UncommentedEmptyConstructor" />
|
||||
<exclude name="UncommentedEmptyMethodBody" />
|
||||
<exclude name="UnusedFormalParameter" />
|
||||
|
|
Loading…
Reference in a new issue