Fix duplicate toUpperCase() calls, use Locale.ROOT
@SuperSuz what do you mean? Your comment is a bit confusing :)
@shoeper I am not able to merge the changes in this repo. Either you can set up so that I can self-merge after approvals, or you need to merge it yourself. Thx!
P.S. I think all toUpperCase() should be changed to toUpperCase(Locale.ROOT) because some tools may complain about locale ambiguity (even though in this case it shouldn't matter, ROOT makes it clear)
@SuperSuz or @shoeper - are there any other people that need to review this code, or can you merge it? Thx!
Sorry, I don't really know.
I cannot merge it.
Looking at commit history, @drinckes and @JonMcPherson merged things recently.
Also, @drinckes is who you want for merging
Maybe @zongweil can help.
I'll take a look within the next couple days.
@zongweil I merged the code and applied your suggestion. See 92e2e40
I have done another pass at minor optimizations -- the code now has a toValidCode which returns normalized code or null if it fails. This way constructor can use it directly, without doing duplicate toUpperCase.