aboutsummaryrefslogtreecommitdiffstats
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/CaseInsensitiveKeywordsTokenizer.java2
-rw-r--r--sonar-colorizer/src/main/java/org/sonar/colorizer/HtmlDecorator.java4
-rw-r--r--sonar-colorizer/src/test/java/org/sonar/colorizer/HtmlCodeBuilderTest.java2
3 files changed, 4 insertions, 4 deletions
diff --git a/sonar-colorizer/src/main/java/org/sonar/colorizer/CaseInsensitiveKeywordsTokenizer.java b/sonar-colorizer/src/main/java/org/sonar/colorizer/CaseInsensitiveKeywordsTokenizer.java
index 00706d9b13d..f7111c3b6e6 100644
--- a/sonar-colorizer/src/main/java/org/sonar/colorizer/CaseInsensitiveKeywordsTokenizer.java
+++ b/sonar-colorizer/src/main/java/org/sonar/colorizer/CaseInsensitiveKeywordsTokenizer.java
@@ -34,7 +34,7 @@ public class CaseInsensitiveKeywordsTokenizer extends KeywordsTokenizer {
}
public KeywordsTokenizer clone() {
- KeywordsTokenizer clone = (KeywordsTokenizer) super.clone();
+ KeywordsTokenizer clone = super.clone();
clone.setCaseInsensitive(true);
return clone;
}
diff --git a/sonar-colorizer/src/main/java/org/sonar/colorizer/HtmlDecorator.java b/sonar-colorizer/src/main/java/org/sonar/colorizer/HtmlDecorator.java
index c1283646513..8c830560047 100644
--- a/sonar-colorizer/src/main/java/org/sonar/colorizer/HtmlDecorator.java
+++ b/sonar-colorizer/src/main/java/org/sonar/colorizer/HtmlDecorator.java
@@ -32,8 +32,8 @@ public class HtmlDecorator extends Tokenizer {
private HtmlOptions options;
private int lineId;
- private static final int LF = (int) '\n';
- private static final int CR = (int) '\r';
+ private static final int LF = '\n';
+ private static final int CR = '\r';
public HtmlDecorator(HtmlOptions options) {
this.options = options;
diff --git a/sonar-colorizer/src/test/java/org/sonar/colorizer/HtmlCodeBuilderTest.java b/sonar-colorizer/src/test/java/org/sonar/colorizer/HtmlCodeBuilderTest.java
index e005260494e..1eef540e833 100644
--- a/sonar-colorizer/src/test/java/org/sonar/colorizer/HtmlCodeBuilderTest.java
+++ b/sonar-colorizer/src/test/java/org/sonar/colorizer/HtmlCodeBuilderTest.java
@@ -73,7 +73,7 @@ public class HtmlCodeBuilderTest {
assertThat((String) builder.getVariable("foo"), is("yyy"));
builder.setVariable("foo", null);
- assertThat((String) builder.getVariable("foo"), nullValue());
+ assertThat(builder.getVariable("foo"), nullValue());
assertThat((String) builder.getVariable("foo", "default"), is("default"));
}