summaryrefslogtreecommitdiffstats
path: root/sonar-colorizer/src
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-colorizer/src')
-rw-r--r--sonar-colorizer/src/main/java/org/sonar/colorizer/KeywordsTokenizer.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/sonar-colorizer/src/main/java/org/sonar/colorizer/KeywordsTokenizer.java b/sonar-colorizer/src/main/java/org/sonar/colorizer/KeywordsTokenizer.java
index 4c68b680f27..2f1192fabeb 100644
--- a/sonar-colorizer/src/main/java/org/sonar/colorizer/KeywordsTokenizer.java
+++ b/sonar-colorizer/src/main/java/org/sonar/colorizer/KeywordsTokenizer.java
@@ -19,13 +19,13 @@
*/
package org.sonar.colorizer;
-import org.sonar.channel.CodeReader;
-
import java.util.Collections;
import java.util.HashSet;
+import java.util.Locale;
import java.util.Set;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
+import org.sonar.channel.CodeReader;
/**
* @deprecated since 4.5.2 replace by highlighting mechanism
@@ -79,7 +79,7 @@ public class KeywordsTokenizer extends NotThreadSafeTokenizer {
private boolean isKeyword(String word) {
if (!caseInsensitive && keywords.contains(word)) {
return true;
- } else if (caseInsensitive && keywords.contains(word.toUpperCase())) {
+ } else if (caseInsensitive && keywords.contains(word.toUpperCase(Locale.ENGLISH))) {
return true;
}
return false;