diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2018-04-25 17:18:39 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2018-05-09 20:20:46 +0200 |
commit | 9f372f97c4e7419d84322f1c23c9a3e1df0d5967 (patch) | |
tree | 09f0bf1dafbac3204694eec985fa189d7c97e423 /sonar-scanner-protocol/src | |
parent | 9aa90ae28dc7ce6c22c6e51c6d847c848a30c949 (diff) | |
download | sonarqube-9f372f97c4e7419d84322f1c23c9a3e1df0d5967.tar.gz sonarqube-9f372f97c4e7419d84322f1c23c9a3e1df0d5967.zip |
SONAR-10647 Compare lines of code taking into account significant code
Diffstat (limited to 'sonar-scanner-protocol/src')
-rw-r--r-- | sonar-scanner-protocol/src/main/java/org/sonar/scanner/protocol/output/ScannerReportReader.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sonar-scanner-protocol/src/main/java/org/sonar/scanner/protocol/output/ScannerReportReader.java b/sonar-scanner-protocol/src/main/java/org/sonar/scanner/protocol/output/ScannerReportReader.java index d5e66955ab3..7da8a34470e 100644 --- a/sonar-scanner-protocol/src/main/java/org/sonar/scanner/protocol/output/ScannerReportReader.java +++ b/sonar-scanner-protocol/src/main/java/org/sonar/scanner/protocol/output/ScannerReportReader.java @@ -120,12 +120,13 @@ public class ScannerReportReader { return file.exists(); } + @CheckForNull public CloseableIterator<ScannerReport.LineSgnificantCode> readComponentSignificantCode(int fileRef) { File file = fileStructure.fileFor(FileStructure.Domain.SGNIFICANT_CODE, fileRef); if (fileExists(file)) { return Protobuf.readStream(file, ScannerReport.LineSgnificantCode.parser()); } - return emptyCloseableIterator(); + return null; } public boolean hasSignificantCode(int fileRef) { |