aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2015-02-12 18:03:18 +0100
committerJulien HENRY <julien.henry@sonarsource.com>2015-02-12 18:03:18 +0100
commit06b3b224141e8519781e4a63fde38758b9e9d1c1 (patch)
treee8deee8275dc5ad8980f5e433f62a173d9c0490b /sonar-batch
parentbacea06aaa2cd51b951b195296f6806b55fb09e0 (diff)
downloadsonarqube-06b3b224141e8519781e4a63fde38758b9e9d1c1.tar.gz
sonarqube-06b3b224141e8519781e4a63fde38758b9e9d1c1.zip
Fix regression in issue tracking
Diffstat (limited to 'sonar-batch')
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/index/SourcePersister.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/index/SourcePersister.java b/sonar-batch/src/main/java/org/sonar/batch/index/SourcePersister.java
index cf1fae2da06..bbbd47cf5ca 100644
--- a/sonar-batch/src/main/java/org/sonar/batch/index/SourcePersister.java
+++ b/sonar-batch/src/main/java/org/sonar/batch/index/SourcePersister.java
@@ -132,7 +132,7 @@ public class SourcePersister implements ScanPersister {
@Override
public void consume(int lineIdx, @Nullable byte[] hash) {
- if (lineIdx > 0) {
+ if (lineIdx > 1) {
result.append("\n");
}
result.append(hash != null ? Hex.encodeHexString(hash) : "");