diff options
author | Evgeny Mandrikov <mandrikov@gmail.com> | 2012-02-17 12:48:07 +0400 |
---|---|---|
committer | Evgeny Mandrikov <mandrikov@gmail.com> | 2012-02-17 13:46:50 +0400 |
commit | 0aa289a5926819abf28961be3d2f1e772648e9fb (patch) | |
tree | 2b4e7df2d9c0c383ca532b57f59db3be5a991740 /sonar-colorizer | |
parent | aa342c58f14c8bc402f69143e9451aaad878e6c3 (diff) | |
download | sonarqube-0aa289a5926819abf28961be3d2f1e772648e9fb.tar.gz sonarqube-0aa289a5926819abf28961be3d2f1e772648e9fb.zip |
Fix some quality flaws
Diffstat (limited to 'sonar-colorizer')
-rw-r--r-- | sonar-colorizer/src/main/java/org/sonar/colorizer/JavaConstantTokenizer.java | 2 | ||||
-rw-r--r-- | sonar-colorizer/src/main/java/org/sonar/colorizer/KeywordsTokenizer.java | 6 |
2 files changed, 4 insertions, 4 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 a7eee6b7e0f..b16fd4de4db 100644 --- a/sonar-colorizer/src/main/java/org/sonar/colorizer/JavaConstantTokenizer.java +++ b/sonar-colorizer/src/main/java/org/sonar/colorizer/JavaConstantTokenizer.java @@ -29,7 +29,7 @@ public class JavaConstantTokenizer extends Tokenizer { private final String tagBefore; private final String tagAfter; - private final static int DOT = '.'; + private static final int DOT = '.'; public JavaConstantTokenizer(String tagBefore, String tagAfter) { this.tagBefore = tagBefore; 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 d576a505873..e2ed24ecd4c 100644 --- a/sonar-colorizer/src/main/java/org/sonar/colorizer/KeywordsTokenizer.java +++ b/sonar-colorizer/src/main/java/org/sonar/colorizer/KeywordsTokenizer.java @@ -19,14 +19,14 @@ */ package org.sonar.colorizer; +import org.sonar.channel.CodeReader; + import java.util.Collections; import java.util.HashSet; import java.util.Set; import java.util.regex.Matcher; import java.util.regex.Pattern; -import org.sonar.channel.CodeReader; - /** * Detect case-sensitive keywords */ @@ -37,7 +37,7 @@ public class KeywordsTokenizer extends NotThreadSafeTokenizer { private boolean caseInsensitive = false; private Matcher matcher; private final StringBuilder tmpBuilder = new StringBuilder(); - private final static String DEFAULT_REGEX = "[a-zA-Z_][a-zA-Z0-9_]*+"; + private static final String DEFAULT_REGEX = "[a-zA-Z_][a-zA-Z0-9_]*+"; private Set<String> keywords = new HashSet<String>(); |