aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2015-12-18 15:48:27 +0100
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>2015-12-18 15:49:08 +0100
commit6e6cf55b1eede89f62b13e6e6f39523ab38c43d5 (patch)
treecadb0a7cfa71be53c7b3e96256282949382ab233 /server
parent8ec2f05179c51a4272f6edacb33881ac7e7ebf09 (diff)
downloadsonarqube-6e6cf55b1eede89f62b13e6e6f39523ab38c43d5.tar.gz
sonarqube-6e6cf55b1eede89f62b13e6e6f39523ab38c43d5.zip
fix use of deprecated constants in favor of static factory method
Diffstat (limited to 'server')
-rw-r--r--server/sonar-server/src/main/java/org/sonar/server/computation/batch/BatchReportReaderImpl.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-server/src/main/java/org/sonar/server/computation/batch/BatchReportReaderImpl.java b/server/sonar-server/src/main/java/org/sonar/server/computation/batch/BatchReportReaderImpl.java
index ee574986dbe..4ec3e6c6a8f 100644
--- a/server/sonar-server/src/main/java/org/sonar/server/computation/batch/BatchReportReaderImpl.java
+++ b/server/sonar-server/src/main/java/org/sonar/server/computation/batch/BatchReportReaderImpl.java
@@ -170,7 +170,7 @@ public class BatchReportReaderImpl implements BatchReportReader {
}
try {
- return new ParserCloseableIterator<>(BatchReport.Test.PARSER, FileUtils.openInputStream(file));
+ return new ParserCloseableIterator<>(BatchReport.Test.parser(), FileUtils.openInputStream(file));
} catch (IOException e) {
Throwables.propagate(e);
// actually never reached
@@ -186,7 +186,7 @@ public class BatchReportReaderImpl implements BatchReportReader {
}
try {
- return new ParserCloseableIterator<>(BatchReport.CoverageDetail.PARSER, FileUtils.openInputStream(file));
+ return new ParserCloseableIterator<>(BatchReport.CoverageDetail.parser(), FileUtils.openInputStream(file));
} catch (IOException e) {
Throwables.propagate(e);
// actually never reached