]> source.dussan.org Git - sonarqube.git/commitdiff
fix misleading error message in ReportComponent when type is not report
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Mon, 6 Aug 2018 10:08:55 +0000 (12:08 +0200)
committerSonarTech <sonartech@sonarsource.com>
Fri, 10 Aug 2018 18:21:32 +0000 (20:21 +0200)
server/sonar-ce-task-projectanalysis/src/test/java/org/sonar/ce/task/projectanalysis/component/ReportComponent.java

index b7c001fe5bc85b399fb993b7375bd10259613752..c19a122fcb97dc97a8d6957907a2f52e47535f51 100644 (file)
@@ -195,7 +195,7 @@ public class ReportComponent implements Component {
     private final List<Component> 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;
     }