From abe25b2d810df453c87469e27da94b5099067c40 Mon Sep 17 00:00:00 2001 From: zubri Date: Thu, 23 May 2024 18:03:30 -0300 Subject: [PATCH] Restore deprecated method in MT210 class --- CHANGELOG.md | 3 ++ .../swift/model/mt/mt2xx/MT210.java | 32 +++++++++++++++++++ 2 files changed, 35 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f90e7e8a..40592125a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Prowide Core - CHANGELOG +#### 9.5.1 - SNAPSHOT + * Restore deprecated method in MT210 class + #### 9.5.0 - May 2024 * SWIFT Standard release update 2024 (live 16 November 2025) * Yearly revision of deprecation phase (see https://dev.prowidesoftware.com/SRU2024/getting-started/deprecation/) diff --git a/src/generated/java/com/prowidesoftware/swift/model/mt/mt2xx/MT210.java b/src/generated/java/com/prowidesoftware/swift/model/mt/mt2xx/MT210.java index 3c8a5ab00..6a6f92e07 100644 --- a/src/generated/java/com/prowidesoftware/swift/model/mt/mt2xx/MT210.java +++ b/src/generated/java/com/prowidesoftware/swift/model/mt/mt2xx/MT210.java @@ -645,5 +645,37 @@ public static List getLoop1List(final SwiftTagListBlock parentSequence) { + /** + * @deprecated use {@link #getLoop1List()} instead + */ + @Deprecated + @com.prowidesoftware.deprecation.ProwideDeprecated(phase4=com.prowidesoftware.deprecation.TargetYear.SRU2025) + public List getSequenceAList() { + com.prowidesoftware.deprecation.DeprecationUtils.phase3(this.getClass(), "getSequenceAList", "Use getLoop1List() instead"); + return getSequenceAList(super.getSwiftMessageNotNullOrException().getBlock4()); + } + + /** + * @deprecated use {@link #getLoop1List(SwiftTagListBlock)} instead + */ + @Deprecated + @com.prowidesoftware.deprecation.ProwideDeprecated(phase4=com.prowidesoftware.deprecation.TargetYear.SRU2025) + public static List getSequenceAList(final SwiftTagListBlock parentSequence) { + com.prowidesoftware.deprecation.DeprecationUtils.phase3(MT210.class, "getSequenceAList", "Use getLoop1List(SwiftTagListBlock) instead"); + List result = new ArrayList<>(); + getLoop1List(parentSequence).forEach(s -> result.add(new SequenceA(s))); + return result; + } + /** + * @deprecated use Loop1 instead + */ + @Deprecated + @com.prowidesoftware.deprecation.ProwideDeprecated(phase4=com.prowidesoftware.deprecation.TargetYear.SRU2025) + public static class SequenceA extends SwiftTagListBlock { + private SequenceA(final Loop1 content) { + super(content.getTags()); + com.prowidesoftware.deprecation.DeprecationUtils.phase3(MT210.class, "SequenceA(Loop1)", "Use Loop1() instead"); + } + } }