Skip to content

Commit

Permalink
IBANValidator: remove unneeded expression
Browse files Browse the repository at this point in the history
  • Loading branch information
slawekjaranowski committed Dec 26, 2024
1 parent 54131ff commit 08f0b4c
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 08f0b4c

Please sign in to comment.