From 281eaa028874dd6fd09db6c70fd9bb61554491e8 Mon Sep 17 00:00:00 2001 From: Niels Thykier Date: Thu, 30 Nov 2023 13:57:52 +0100 Subject: [PATCH] Deprecate `performSimpleStatusChange` Signed-off-by: Niels Thykier --- .../standards/booking/model/PersistableCarrierBooking.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/booking/src/main/java/org/dcsa/conformance/standards/booking/model/PersistableCarrierBooking.java b/booking/src/main/java/org/dcsa/conformance/standards/booking/model/PersistableCarrierBooking.java index 4390b744..229ebfb5 100644 --- a/booking/src/main/java/org/dcsa/conformance/standards/booking/model/PersistableCarrierBooking.java +++ b/booking/src/main/java/org/dcsa/conformance/standards/booking/model/PersistableCarrierBooking.java @@ -157,6 +157,10 @@ private void setReason(String reason) { } } + /** + * Replace this with a more concrete call (like confirmBooking()) when needed + */ + @Deprecated public void performSimpleStatusChange(String reference, BookingState newState, String reason) { // FIXME: Have logic for amendment vs. non-amendment states if (NOT_APPLICABLE_FOR_SIMPLE_STATE_CHANGE.contains(newState)) {