summaryrefslogtreecommitdiffstats
path: root/sonar-batch/src
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2014-01-13 22:53:46 +0100
committerJulien HENRY <julien.henry@sonarsource.com>2014-01-13 22:53:46 +0100
commit6256eda8b9d69410d418bacbd31cbc4f8220e7c7 (patch)
treeec60cb617f38aa2d2b1c96215668684a14007c4e /sonar-batch/src
parentc965dc1e811ffb98f2806a343afec68a01ff82c3 (diff)
downloadsonarqube-6256eda8b9d69410d418bacbd31cbc4f8220e7c7.tar.gz
sonarqube-6256eda8b9d69410d418bacbd31cbc4f8220e7c7.zip
SONAR-3024 Fix deprecated key in json report
Diffstat (limited to 'sonar-batch/src')
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/scan/filesystem/FileIndex.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/scan/filesystem/FileIndex.java b/sonar-batch/src/main/java/org/sonar/batch/scan/filesystem/FileIndex.java
index 6ccd2fd5c95..f5ff4bd6c33 100644
--- a/sonar-batch/src/main/java/org/sonar/batch/scan/filesystem/FileIndex.java
+++ b/sonar-batch/src/main/java/org/sonar/batch/scan/filesystem/FileIndex.java
@@ -181,7 +181,8 @@ public class FileIndex implements BatchComponent {
}
set(attributes, DefaultInputFile.ATTRIBUTE_COMPONENT_KEY, project.getEffectiveKey() + ":" + resourceKey);
if (Java.KEY.equals(lang)) {
- set(attributes, DefaultInputFile.ATTRIBUTE_COMPONENT_DEPRECATED_KEY, project.getEffectiveKey() + ":" + JavaFile.fromRelativePath(sourceRelativePath, false).getKey());
+ set(attributes, DefaultInputFile.ATTRIBUTE_COMPONENT_DEPRECATED_KEY, project.getEffectiveKey() + ":"
+ + JavaFile.fromRelativePath(sourceRelativePath, false).getDeprecatedKey());
} else {
set(attributes, DefaultInputFile.ATTRIBUTE_COMPONENT_DEPRECATED_KEY, project.getEffectiveKey() + ":" + sourceRelativePath);
}