diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2018-08-06 12:08:55 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2018-08-10 20:21:32 +0200 |
commit | 29b5f4a0ebf686f9dee7f1d6c6eab65fe381654d (patch) | |
tree | 3643c15d9c9fc56d9b0653485464e8e7df366c29 /server | |
parent | ba6c03b9744bf40b647e203fb8a26fefbcde46e8 (diff) | |
download | sonarqube-29b5f4a0ebf686f9dee7f1d6c6eab65fe381654d.tar.gz sonarqube-29b5f4a0ebf686f9dee7f1d6c6eab65fe381654d.zip |
fix misleading error message in ReportComponent when type is not report
Diffstat (limited to 'server')
-rw-r--r-- | server/sonar-ce-task-projectanalysis/src/test/java/org/sonar/ce/task/projectanalysis/component/ReportComponent.java | 2 |
1 files changed, 1 insertions, 1 deletions
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<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; } |