]> source.dussan.org Git - sonarqube.git/commitdiff
Fix unstable UT
authorDuarte Meneses <duarte.meneses@sonarsource.com>
Thu, 18 Nov 2021 17:28:19 +0000 (11:28 -0600)
committersonartech <sonartech@sonarsource.com>
Thu, 18 Nov 2021 20:03:33 +0000 (20:03 +0000)
server/sonar-webserver-webapi/src/main/java/org/sonar/server/projectanalysis/ws/EventValidator.java

index 09cba422b81f511d64a80ac48043d4f119ead30c..80720fb319d599de72d9577c8ebb844b5f0f8b82 100644 (file)
@@ -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<String> AUTHORIZED_CATEGORIES = Set.of(VERSION.name(), OTHER.name());
+  private static final Set<String> AUTHORIZED_CATEGORIES = ImmutableSet.of(VERSION.name(), OTHER.name());
   private static final String AUTHORIZED_CATEGORIES_INLINED = Joiner.on(", ").join(AUTHORIZED_CATEGORIES);
 
   private EventValidator() {