diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2015-12-18 15:48:27 +0100 |
---|---|---|
committer | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2015-12-18 15:49:08 +0100 |
commit | 6e6cf55b1eede89f62b13e6e6f39523ab38c43d5 (patch) | |
tree | cadb0a7cfa71be53c7b3e96256282949382ab233 /server | |
parent | 8ec2f05179c51a4272f6edacb33881ac7e7ebf09 (diff) | |
download | sonarqube-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.java | 4 |
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 |