From: Duarte Meneses Date: Thu, 18 Nov 2021 17:28:19 +0000 (-0600) Subject: Fix unstable UT X-Git-Tag: 9.2.0.49834~4 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a50b8b55b714fb0feb8e95abe44149ed82db9a04;p=sonarqube.git Fix unstable UT --- diff --git a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/projectanalysis/ws/EventValidator.java b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/projectanalysis/ws/EventValidator.java index 09cba422b81..80720fb319d 100644 --- a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/projectanalysis/ws/EventValidator.java +++ b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/projectanalysis/ws/EventValidator.java @@ -33,7 +33,7 @@ import static org.sonar.server.projectanalysis.ws.EventCategory.VERSION; import static org.sonar.server.projectanalysis.ws.EventCategory.fromLabel; class EventValidator { - private static final Set AUTHORIZED_CATEGORIES = Set.of(VERSION.name(), OTHER.name()); + private static final Set AUTHORIZED_CATEGORIES = ImmutableSet.of(VERSION.name(), OTHER.name()); private static final String AUTHORIZED_CATEGORIES_INLINED = Joiner.on(", ").join(AUTHORIZED_CATEGORIES); private EventValidator() {