Skip to content

Commit

Permalink
Restore deprecated method in MT210 class
Browse files Browse the repository at this point in the history
  • Loading branch information
zubri committed May 23, 2024
1 parent e6364b8 commit abe25b2
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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/)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -645,5 +645,37 @@ public static List<Loop1> getLoop1List(final SwiftTagListBlock parentSequence) {



/**
* @deprecated use {@link #getLoop1List()} instead
*/
@Deprecated
@com.prowidesoftware.deprecation.ProwideDeprecated(phase4=com.prowidesoftware.deprecation.TargetYear.SRU2025)
public List<SequenceA> 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<SequenceA> getSequenceAList(final SwiftTagListBlock parentSequence) {
com.prowidesoftware.deprecation.DeprecationUtils.phase3(MT210.class, "getSequenceAList", "Use getLoop1List(SwiftTagListBlock) instead");
List<SequenceA> 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");
}
}
}

0 comments on commit abe25b2

Please sign in to comment.