Skip to content

Commit c600de5

Browse files
committed
Findbugs: specify Locale
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1744749 13f79535-47bb-0310-9956-ffa450edef68
1 parent 68ae60d commit c600de5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/apache/commons/codec/language/MatchRatingApproachEncoder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ String removeAccents(final String accentedWord) {
380380
* @return Single consonant word
381381
*/
382382
String removeDoubleConsonants(final String name) {
383-
String replacedName = name.toUpperCase();
383+
String replacedName = name.toUpperCase(Locale.ENGLISH);
384384
for (final String dc : DOUBLE_CONSONANT) {
385385
if (replacedName.contains(dc)) {
386386
final String singleLetter = dc.substring(0, 1);

0 commit comments

Comments
 (0)