aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-colorizer
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2016-02-05 10:15:06 +0100
committerSimon Brandhof <simon.brandhof@sonarsource.com>2016-02-05 10:15:18 +0100
commite4c5970f42097fccb0948be068c3f4dda2352b78 (patch)
tree5d22d1e0f4d1350c91e44bf64176160e85ca371f /sonar-colorizer
parent0a1a8bd87bd186cd86051496c4de4baba6615738 (diff)
downloadsonarqube-e4c5970f42097fccb0948be068c3f4dda2352b78.tar.gz
sonarqube-e4c5970f42097fccb0948be068c3f4dda2352b78.zip
Fix quality gates
Diffstat (limited to 'sonar-colorizer')
-rw-r--r--sonar-colorizer/src/main/java/org/sonar/colorizer/JavaConstantTokenizer.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/sonar-colorizer/src/main/java/org/sonar/colorizer/JavaConstantTokenizer.java b/sonar-colorizer/src/main/java/org/sonar/colorizer/JavaConstantTokenizer.java
index cb10364604b..03222f0c67c 100644
--- a/sonar-colorizer/src/main/java/org/sonar/colorizer/JavaConstantTokenizer.java
+++ b/sonar-colorizer/src/main/java/org/sonar/colorizer/JavaConstantTokenizer.java
@@ -70,11 +70,11 @@ public class JavaConstantTokenizer extends Tokenizer {
}
}
- private boolean isJavaConstantStart(int character) {
+ private static boolean isJavaConstantStart(int character) {
return Character.isUpperCase(character);
}
- private boolean isJavaConstantPart(int character) {
+ private static boolean isJavaConstantPart(int character) {
return Character.isUpperCase(character) || character == '_' || character == '-' || Character.isDigit(character);
}