From a50b8b55b714fb0feb8e95abe44149ed82db9a04 Mon Sep 17 00:00:00 2001 From: Duarte Meneses Date: Thu, 18 Nov 2021 11:28:19 -0600 Subject: [PATCH] Fix unstable UT --- .../org/sonar/server/projectanalysis/ws/EventValidator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() { -- 2.39.5