From: Sébastien Lesaint Date: Mon, 6 Aug 2018 10:08:55 +0000 (+0200) Subject: fix misleading error message in ReportComponent when type is not report X-Git-Tag: 7.5~605 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=29b5f4a0ebf686f9dee7f1d6c6eab65fe381654d;p=sonarqube.git fix misleading error message in ReportComponent when type is not report --- diff --git a/server/sonar-ce-task-projectanalysis/src/test/java/org/sonar/ce/task/projectanalysis/component/ReportComponent.java b/server/sonar-ce-task-projectanalysis/src/test/java/org/sonar/ce/task/projectanalysis/component/ReportComponent.java index b7c001fe5bc..c19a122fcb9 100644 --- a/server/sonar-ce-task-projectanalysis/src/test/java/org/sonar/ce/task/projectanalysis/component/ReportComponent.java +++ b/server/sonar-ce-task-projectanalysis/src/test/java/org/sonar/ce/task/projectanalysis/component/ReportComponent.java @@ -195,7 +195,7 @@ public class ReportComponent implements Component { private final List children = new ArrayList<>(); private Builder(Type type, int ref) { - checkArgument(type.isReportType(), "Component type must not be a report type"); + checkArgument(type.isReportType(), "Component type must be a report type"); this.type = type; this.ref = ref; }