diff options
author | David Gageot <david@gageot.net> | 2015-05-12 10:42:31 +0200 |
---|---|---|
committer | David Gageot <david@gageot.net> | 2015-05-12 14:33:41 +0200 |
commit | 7d5701e0a327448484ccee968e12ae3d9162d407 (patch) | |
tree | 48765dedbd2125480a531d71e30801ee44d8bce9 /sonar-colorizer/src | |
parent | 4bab89867b0484fa9d21d0d54e6d7687d2b2f5bf (diff) | |
download | sonarqube-7d5701e0a327448484ccee968e12ae3d9162d407.tar.gz sonarqube-7d5701e0a327448484ccee968e12ae3d9162d407.zip |
Useless code
Diffstat (limited to 'sonar-colorizer/src')
3 files changed, 3 insertions, 3 deletions
diff --git a/sonar-colorizer/src/main/java/org/sonar/colorizer/HtmlRenderer.java b/sonar-colorizer/src/main/java/org/sonar/colorizer/HtmlRenderer.java index a95a4348991..7e3d42436fa 100644 --- a/sonar-colorizer/src/main/java/org/sonar/colorizer/HtmlRenderer.java +++ b/sonar-colorizer/src/main/java/org/sonar/colorizer/HtmlRenderer.java @@ -45,7 +45,7 @@ public class HtmlRenderer extends Renderer { @Override public String render(Reader code, List<? extends Channel<HtmlCodeBuilder>> tokenizers) { try { - List<Channel<HtmlCodeBuilder>> allTokenizers = new ArrayList<Channel<HtmlCodeBuilder>>(); + List<Channel<HtmlCodeBuilder>> allTokenizers = new ArrayList<>(); HtmlCodeBuilder codeBuilder = new HtmlCodeBuilder(); HtmlDecorator htmlDecorator = new HtmlDecorator(options); 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 06025a33d37..3a175633d0a 100644 --- a/sonar-colorizer/src/main/java/org/sonar/colorizer/KeywordsTokenizer.java +++ b/sonar-colorizer/src/main/java/org/sonar/colorizer/KeywordsTokenizer.java @@ -40,7 +40,7 @@ public class KeywordsTokenizer extends NotThreadSafeTokenizer { private final StringBuilder tmpBuilder = new StringBuilder(); private static final String DEFAULT_REGEX = "[a-zA-Z_][a-zA-Z0-9_]*+"; - private Set<String> keywords = new HashSet<String>(); + private Set<String> keywords = new HashSet<>(); public KeywordsTokenizer(String tagBefore, String tagAfter, Set<String> keywords) { this(tagBefore, tagAfter, keywords, DEFAULT_REGEX); diff --git a/sonar-colorizer/src/test/java/org/sonar/colorizer/CodeColorizerTest.java b/sonar-colorizer/src/test/java/org/sonar/colorizer/CodeColorizerTest.java index ed30d457e95..d3a5c4cb217 100644 --- a/sonar-colorizer/src/test/java/org/sonar/colorizer/CodeColorizerTest.java +++ b/sonar-colorizer/src/test/java/org/sonar/colorizer/CodeColorizerTest.java @@ -102,7 +102,7 @@ public class CodeColorizerTest { } } - Collection<Callable<String>> tasks = new ArrayList<Callable<String>>(); + Collection<Callable<String>> tasks = new ArrayList<>(); for (int i = 0; i < taskCount; i++) { tasks.add(new ColorizerTask()); } |