Codec Soundex Bug Fix


There was a trivial bug fixed in Commons Codec that affected the Soundex class. If you tried to use the static US_ENGLISH instance, you ran into problems. For example:

String code = Soundex.US_ENGLISH.soundex("Smith");

Was throwing a NPE because of the ordering of the static variables in the Soundex class. The problem was addressed by reordering the statics and adding a unit test donated by the person who identified this bug.

Credit to Reggie Riser for identifying this defect.