From 70e2c06ae7d53c5f1dc4863b6691d57a1686bbfd Mon Sep 17 00:00:00 2001 From: Janne Valkealahti Date: Sat, 17 Oct 2020 10:34:40 +0100 Subject: [PATCH] Deprecated original interceptor methods - Original preStateChange and postStateChange are now deprecated and once those are removed we don't need to do calls to both in StateMachineInterceptorList. - Relates to #871 --- .../statemachine/support/StateMachineInterceptor.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spring-statemachine-core/src/main/java/org/springframework/statemachine/support/StateMachineInterceptor.java b/spring-statemachine-core/src/main/java/org/springframework/statemachine/support/StateMachineInterceptor.java index 224c78f9..96d71fa5 100644 --- a/spring-statemachine-core/src/main/java/org/springframework/statemachine/support/StateMachineInterceptor.java +++ b/spring-statemachine-core/src/main/java/org/springframework/statemachine/support/StateMachineInterceptor.java @@ -1,5 +1,5 @@ /* - * Copyright 2015-2019 the original author or authors. + * Copyright 2015-2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -50,6 +50,7 @@ public interface StateMachineInterceptor { * @param message the message * @param transition the transition * @param stateMachine the state machine + * @deprecated in favour of {@link #preStateChange(State, Message, Transition, StateMachine, StateMachine)} */ void preStateChange(State state, Message message, Transition transition, StateMachine stateMachine); @@ -74,6 +75,7 @@ public interface StateMachineInterceptor { * @param message the message * @param transition the transition * @param stateMachine the state machine + * @deprecated in favour of {@link #postStateChange(State, Message, Transition, StateMachine, StateMachine)} */ void postStateChange(State state, Message message, Transition transition, StateMachine stateMachine);