Fix or suppress SAT CompareObjectsWithEquals findings (#10631)
* Fix or suppress SAT CompareObjectsWithEquals findings Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
@@ -58,6 +58,7 @@ public abstract class AbstractStateMachine<T extends AbstractStateMachine<T, U>,
|
||||
newState.startWorking();
|
||||
}
|
||||
|
||||
@SuppressWarnings("PMD.CompareObjectsWithEquals")
|
||||
protected boolean isStateActive(AbstractState<?, ?> otherState) {
|
||||
return state == otherState; // compare by identity
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user