]> source.dussan.org Git - sonarqube.git/commitdiff
fix use of deprecated constants in favor of static factory method
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Fri, 18 Dec 2015 14:48:27 +0000 (15:48 +0100)
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Fri, 18 Dec 2015 14:49:08 +0000 (15:49 +0100)
server/sonar-server/src/main/java/org/sonar/server/computation/batch/BatchReportReaderImpl.java

index ee574986dbee80169d6689b0ca1533b7f4f8f299..4ec3e6c6a8fc59e06e215bb8823bfd7a30798341 100644 (file)
@@ -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