]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-2115 : use StringBuilder.append() instead of String+String
authorsimonbrandhof <simon.brandhof@gmail.com>
Sun, 17 Apr 2011 10:55:22 +0000 (12:55 +0200)
committersimonbrandhof <simon.brandhof@gmail.com>
Sun, 17 Apr 2011 10:55:22 +0000 (12:55 +0200)
sonar-colorizer/src/main/java/org/sonar/colorizer/HtmlDecorator.java

index 5e4e2e512d858b337d965c8bc06529603ee7d0fc..66b721e718cef8217b81992021382b847570661c 100644 (file)
  */
 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();
   }