summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2018-08-06 12:08:55 +0200
committerSonarTech <sonartech@sonarsource.com>2018-08-10 20:21:32 +0200
commit29b5f4a0ebf686f9dee7f1d6c6eab65fe381654d (patch)
tree3643c15d9c9fc56d9b0653485464e8e7df366c29 /server
parentba6c03b9744bf40b647e203fb8a26fefbcde46e8 (diff)
downloadsonarqube-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.java2
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;
}
a id='n172' href='#n172'>172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255