summaryrefslogtreecommitdiffstats
path: root/sonar-colorizer
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2013-08-28 18:14:14 +0200
committerJulien HENRY <julien.henry@sonarsource.com>2013-08-28 18:14:14 +0200
commit0264a155e42c32c812807e9155ffee6e6e9de3b2 (patch)
tree1e9bed6876d2cf83b9f44dcbd6886efb3298a853 /sonar-colorizer
parent1e5c57b590d1caded7ffbc846e4699b361779f4a (diff)
downloadsonarqube-0264a155e42c32c812807e9155ffee6e6e9de3b2.tar.gz
sonarqube-0264a155e42c32c812807e9155ffee6e6e9de3b2.zip
Fix some quality flaws
Diffstat (limited to 'sonar-colorizer')
-rw-r--r--sonar-colorizer/src/main/java/org/sonar/colorizer/GroovyTokenizers.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/sonar-colorizer/src/main/java/org/sonar/colorizer/GroovyTokenizers.java b/sonar-colorizer/src/main/java/org/sonar/colorizer/GroovyTokenizers.java
index 61ce2caa067..00b81250ae4 100644
--- a/sonar-colorizer/src/main/java/org/sonar/colorizer/GroovyTokenizers.java
+++ b/sonar-colorizer/src/main/java/org/sonar/colorizer/GroovyTokenizers.java
@@ -25,13 +25,15 @@ import java.util.List;
public final class GroovyTokenizers {
+ private static final String SPAN_END = "</span>";
+
private GroovyTokenizers() {
}
public static List<Tokenizer> forHtml() {
- return Collections.unmodifiableList(Arrays.asList(new JavaAnnotationTokenizer("<span class=\"a\">", "</span>"), new LiteralTokenizer(
- "<span class=\"s\">", "</span>"), new CDocTokenizer("<span class=\"cd\">", "</span>"), new CppDocTokenizer("<span class=\"cppd\">",
- "</span>"), new JavadocTokenizer("<span class=\"j\">", "</span>"), new JavaConstantTokenizer("<span class=\"c\">", "</span>"),
- new KeywordsTokenizer("<span class=\"k\">", "</span>", GroovyKeywords.get())));
+ return Collections.unmodifiableList(Arrays.asList(new JavaAnnotationTokenizer("<span class=\"a\">", SPAN_END), new LiteralTokenizer(
+ "<span class=\"s\">", SPAN_END), new CDocTokenizer("<span class=\"cd\">", SPAN_END), new CppDocTokenizer("<span class=\"cppd\">",
+ SPAN_END), new JavadocTokenizer("<span class=\"j\">", SPAN_END), new JavaConstantTokenizer("<span class=\"c\">", SPAN_END),
+ new KeywordsTokenizer("<span class=\"k\">", SPAN_END, GroovyKeywords.get())));
}
}