arturmkrtchyan / iban4j

A Java library for generation and validation of the International Bank Account Numbers (IBAN ISO_13616) and Business Identifier Codes (BIC ISO_9362).
http://iban4j.org
Apache License 2.0
271 stars 124 forks source link

Wrong getAlpha2 is returned from the CountryCode #60

Closed hpdrofus closed 4 years ago

hpdrofus commented 5 years ago

Hi,

In the CountryCode.java, the method getAlpha2() returns the name of the country and not the 2 letters code as it should. Is this something that can be quickly fixed?

bvaardal commented 4 years ago

It returns Enum.name() (the name of the enum constant itself), not CountryCode.name or CountryCode.getName().

I'm closing this issue, but feel free to reopen the issue if you actually observe incorrect behaviour.