From 6e6cf55b1eede89f62b13e6e6f39523ab38c43d5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Lesaint?= Date: Fri, 18 Dec 2015 15:48:27 +0100 Subject: [PATCH] fix use of deprecated constants in favor of static factory method --- .../sonar/server/computation/batch/BatchReportReaderImpl.java | 4 ++-- 1 file 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 -- 2.39.5