commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1744749 - /commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/language/MatchRatingApproachEncoder.java
Date Fri, 20 May 2016 14:23:17 GMT
Author: sebb
Date: Fri May 20 14:23:17 2016
New Revision: 1744749

URL: http://svn.apache.org/viewvc?rev=1744749&view=rev
Log:
Findbugs: specify Locale

Modified:
    commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/language/MatchRatingApproachEncoder.java

Modified: commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/language/MatchRatingApproachEncoder.java
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/language/MatchRatingApproachEncoder.java?rev=1744749&r1=1744748&r2=1744749&view=diff
==============================================================================
--- commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/language/MatchRatingApproachEncoder.java
(original)
+++ commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/language/MatchRatingApproachEncoder.java
Fri May 20 14:23:17 2016
@@ -380,7 +380,7 @@ public class MatchRatingApproachEncoder
      * @return Single consonant word
      */
     String removeDoubleConsonants(final String name) {
-        String replacedName = name.toUpperCase();
+        String replacedName = name.toUpperCase(Locale.ENGLISH);
         for (final String dc : DOUBLE_CONSONANT) {
             if (replacedName.contains(dc)) {
                 final String singleLetter = dc.substring(0, 1);



Mime
View raw message