aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-colorizer/src
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2011-04-17 12:55:22 +0200
committersimonbrandhof <simon.brandhof@gmail.com>2011-04-17 12:55:22 +0200
commit58bf36ece8a066417d3ea0f887670cb373807ce2 (patch)
tree6c95abeade014d20f2c060bcefd9dc5832dfd571 /sonar-colorizer/src
parent1d7e1e31407a49f365b811145b566754250e416a (diff)
downloadsonarqube-58bf36ece8a066417d3ea0f887670cb373807ce2.tar.gz
sonarqube-58bf36ece8a066417d3ea0f887670cb373807ce2.zip
SONAR-2115 : use StringBuilder.append() instead of String+String
Diffstat (limited to 'sonar-colorizer/src')
-rw-r--r--sonar-colorizer/src/main/java/org/sonar/colorizer/HtmlDecorator.java9
1 files changed, 4 insertions, 5 deletions
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 5e4e2e512d8..66b721e718c 100644
--- a/sonar-colorizer/src/main/java/org/sonar/colorizer/HtmlDecorator.java
+++ b/sonar-colorizer/src/main/java/org/sonar/colorizer/HtmlDecorator.java
@@ -19,12 +19,12 @@
*/
package org.sonar.colorizer;
-import java.io.IOException;
-import java.io.InputStream;
-
import org.apache.commons.io.IOUtils;
import org.sonar.channel.CodeReader;
+import java.io.IOException;
+import java.io.InputStream;
+
public class HtmlDecorator extends Tokenizer {
private static final String CSS_PATH = "/sonar-colorizer.css";
@@ -52,8 +52,7 @@ public class HtmlDecorator extends Tokenizer {
if (options.getTableId() != null) {
sb.append(options.getTableId());
}
- sb.append("\"><tbody>");
- sb.append("<tr id=\"" + lineId++ + "\"><td><pre>");
+ sb.append("\"><tbody><tr id=\"").append(lineId++).append("\"><td><pre>");
return sb.toString();
}