Introduce TypeMemberOrder
bug checker
#3922
Annotations
7 warnings
5 different changes can be made to line 89 without causing a test to fail:
error-prone-utils/src/main/java/tech/picnic/errorprone/utils/MoreASTHelpers.java#L89
removed conditional - replaced equality check with false (no tests cover this line RemoveConditionalMutator_EQUAL_ELSE)
removed conditional - replaced equality check with false (no tests cover this line RemoveConditionalMutator_EQUAL_ELSE)
removed conditional - replaced equality check with true (no tests cover this line RemoveConditionalMutator_EQUAL_IF)
removed conditional - replaced equality check with true (no tests cover this line RemoveConditionalMutator_EQUAL_IF)
replaced boolean return with true for isGeneratedConstructor (no tests cover this line BooleanTrueReturnValsMutator)
|
3 different changes can be made to line 207 without causing a test to fail:
error-prone-experimental/src/main/java/tech/picnic/errorprone/experimental/bugpatterns/TypeMemberOrder.java#L207
removed conditional - replaced equality check with false (covered by 18 tests RemoveConditionalMutator_EQUAL_ELSE)
removed conditional - replaced equality check with true (covered by 18 tests RemoveConditionalMutator_EQUAL_IF)
removed conditional - replaced equality check with true (covered by 18 tests RemoveConditionalMutator_EQUAL_IF)
|
A change can be made to line 208 without causing a test to fail:
error-prone-experimental/src/main/java/tech/picnic/errorprone/experimental/bugpatterns/TypeMemberOrder.java#L208
replaced int return with 0 for getBodyStartPos (no tests cover this line PrimitiveReturnsMutator)
|
3 different changes can be made to line 95 without causing a test to fail:
error-prone-experimental/src/main/java/tech/picnic/errorprone/experimental/bugpatterns/TypeMemberOrder.java#L95
removed conditional - replaced equality check with false (covered by 18 tests RemoveConditionalMutator_EQUAL_ELSE)
removed conditional - replaced equality check with false (covered by 12 tests RemoveConditionalMutator_EQUAL_ELSE)
removed conditional - replaced equality check with false (covered by 10 tests RemoveConditionalMutator_EQUAL_ELSE)
|
A change can be made to line 96 without causing a test to fail:
error-prone-experimental/src/main/java/tech/picnic/errorprone/experimental/bugpatterns/TypeMemberOrder.java#L96
replaced return value with null for matchClass (no tests cover this line NullReturnValsMutator)
|
A change can be made to a lambda on line 259 without causing a test to fail:
error-prone-experimental/src/main/java/tech/picnic/errorprone/experimental/bugpatterns/TypeMemberOrder.java#L259
removed conditional - replaced equality check with false in 1st lambda in sortTypeMembers (covered by 18 tests RemoveConditionalMutator_EQUAL_ELSE)
|
A change can be made to line 100 without causing a test to fail:
error-prone-experimental/src/main/java/tech/picnic/errorprone/experimental/bugpatterns/TypeMemberOrder.java#L100
removed conditional - replaced equality check with false (covered by 18 tests RemoveConditionalMutator_EQUAL_ELSE)
|