From 0e0c268232d70d1cfe74493e7026e8b7815f3bf1 Mon Sep 17 00:00:00 2001 From: Marc Wrobel Date: Sat, 17 Oct 2020 16:29:54 +0200 Subject: [PATCH] Remove deprecated methods (closes #49) --- CHANGELOG.md | 11 ++++++++ .../fr/marcwrobel/jbanking/IsoCountry.java | 27 ------------------- 2 files changed, 11 insertions(+), 27 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fc2f87b6..6d615573 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). This new release includes : +- serialization support, +- calendar API improvements (composite calendars), + +This new release also includes breaking changes : +- deprecated methods removal (see details below). ### Added @@ -20,4 +25,10 @@ This new release includes : ### Deprecated +### Removed + +- Remove deprecated method `IsoCountry.getCode()` : use `IsoCountry.getAlpha2Code()` instead (#49). +- Remove deprecated method `IsoCountry.fromCode(String)` : use `IsoCountry.fromAlpha2Code(String)` + instead (#49). + ### Thanks diff --git a/src/main/java/fr/marcwrobel/jbanking/IsoCountry.java b/src/main/java/fr/marcwrobel/jbanking/IsoCountry.java index 52664060..699293e4 100644 --- a/src/main/java/fr/marcwrobel/jbanking/IsoCountry.java +++ b/src/main/java/fr/marcwrobel/jbanking/IsoCountry.java @@ -805,18 +805,6 @@ public enum IsoCountry { this(alpha2Code, alpha3Code, numericCode, true, null); } - /** - * Returns this country ISO 3166-1-alpha-2 code. - * - * @deprecated use {@link #getAlpha2Code()}, will be removed in the next major version - * @return a non null and 2 characters length string. - * @see #getAlpha2Code() - */ - @Deprecated - public String getCode() { - return getAlpha2Code(); - } - /** * Returns this country ISO 3166-1 alpha-2 code. * @@ -910,21 +898,6 @@ public Set participations() { return agreements; } - /** - * Translate the given ISO 3166-1-alpha-2 code to an IsoCountry. - * - *

This method is not case-sensitive. - * - * @param code A non-null String. - * @deprecated use {@link #fromAlpha2Code(String)}, will be removed in the next major version - * @return the country having the given ISO 3166-1-alpha-2 code, or null if it does not exist. - * @see #fromAlpha2Code(String) - */ - @Deprecated - public static IsoCountry fromCode(String code) { - return fromAlpha2Code(code).orElse(null); - } - /** * Translate the given ISO 3166-1 alpha-2 code to an IsoCountry. *