diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-04-06 10:23:06 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-04-06 10:23:06 +0200 |
commit | 9e8e346e71b304fcf7aeb4e4f4c9a3c7107e1a53 (patch) | |
tree | 9be0ec5f72b5b6eb95871c50fab3b8f180de0b59 /sonar-colorizer | |
parent | a5db81075b825ee87df9c64e3f1f2a32cdb4d72b (diff) | |
download | sonarqube-9e8e346e71b304fcf7aeb4e4f4c9a3c7107e1a53.tar.gz sonarqube-9e8e346e71b304fcf7aeb4e4f4c9a3c7107e1a53.zip |
Fix quality flaws
Diffstat (limited to 'sonar-colorizer')
-rw-r--r-- | sonar-colorizer/src/main/java/org/sonar/colorizer/KeywordsTokenizer.java | 6 |
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; |