From 29b5f4a0ebf686f9dee7f1d6c6eab65fe381654d Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Lesaint?= Date: Mon, 6 Aug 2018 12:08:55 +0200 Subject: [PATCH] fix misleading error message in ReportComponent when type is not report --- .../ce/task/projectanalysis/component/ReportComponent.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5