Skip to content

Commit

Permalink
Merge pull request #302 from slawekjaranowski/iban-rm-unneeded-expres…
Browse files Browse the repository at this point in the history
…sion

IBANValidator: remove unneeded expression
  • Loading branch information
garydgregory authored Dec 27, 2024
2 parents f195e60 + 08f0b4c commit 33ad56b
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,6 @@ public Validator(final String countryCode, final int ibanLength, final String re
if (ibanLength > MAX_LEN || ibanLength < MIN_LEN) {
throw new IllegalArgumentException("Invalid length parameter, must be in range " + MIN_LEN + " to " + MAX_LEN + " inclusive: " + ibanLength);
}
final String regex = countryCode + regexWithoutCC;
if (!regex.startsWith(countryCode)) {
throw new IllegalArgumentException("countryCode '" + countryCode + "' does not agree with format: " + regex);
}
this.countryCode = countryCode;
this.otherCountryCodes = otherCountryCodes.clone();
final List<String> regexList = new ArrayList<>(this.otherCountryCodes.length + 1);
Expand Down

0 comments on commit 33ad56b

Please sign in to comment.