}
@VisibleForTesting
+ @SuppressWarnings("checkstyle:IllegalCatch")
protected void changeCurrentBehavior(RaftActorBehavior newBehavior) {
final RaftActorBehavior currentBehavior = getCurrentBehavior();
if (currentBehavior != null) {
}
/**
+ * Handles a message.
+ *
* @deprecated This method is not final for testing purposes. DO NOT OVERRIDE IT, override
* {@link #handleNonRaftCommand(Object)} instead.
*/
private void handleBehaviorChange(BehaviorState oldBehaviorState, RaftActorBehavior currentBehavior) {
RaftActorBehavior oldBehavior = oldBehaviorState.getBehavior();
- if (oldBehavior != currentBehavior){
+ if (oldBehavior != currentBehavior) {
onStateChanged();
}