aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-colorizer/src
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2014-02-06 10:50:29 +0100
committerJulien Lancelot <julien.lancelot@sonarsource.com>2014-02-06 10:50:29 +0100
commite0a73badff633721360fd042b0c3bb3a581e052c (patch)
tree324b120561469de984f5bf036e7b272bd0cc544c /sonar-colorizer/src
parentf2befd8d8e05474a25413fccd6817dceee046e94 (diff)
downloadsonarqube-e0a73badff633721360fd042b0c3bb3a581e052c.tar.gz
sonarqube-e0a73badff633721360fd042b0c3bb3a581e052c.zip
Fix quality flaws
Diffstat (limited to 'sonar-colorizer/src')
-rw-r--r--sonar-colorizer/src/main/java/org/sonar/colorizer/HtmlDecorator.java4
1 files changed, 3 insertions, 1 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 1090700f6a8..3726104ec6c 100644
--- a/sonar-colorizer/src/main/java/org/sonar/colorizer/HtmlDecorator.java
+++ b/sonar-colorizer/src/main/java/org/sonar/colorizer/HtmlDecorator.java
@@ -67,7 +67,9 @@ public class HtmlDecorator extends Tokenizer {
}
public String getTagBefore() {
- return "<tr id=\"" + lineId++ + "\"><td><pre>";
+ String tag = "<tr id=\"" + lineId + "\"><td><pre>";
+ lineId++;
+ return tag;
}
public String getTagAfter() {