From 52ce30d1fffd1383ee05b4833f34ab6a5bdfa711 Mon Sep 17 00:00:00 2001 From: Dejan Milisavljevic Date: Mon, 14 Oct 2024 15:10:39 +0200 Subject: [PATCH] SONAR-23250 Fix issues raised by the scan --- .../org/sonar/server/rule/registration/RulesRegistrantIT.java | 2 +- .../QualityProfileChangeEventServiceImplTest.java | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/server/sonar-webserver-core/src/it/java/org/sonar/server/rule/registration/RulesRegistrantIT.java b/server/sonar-webserver-core/src/it/java/org/sonar/server/rule/registration/RulesRegistrantIT.java index 1cc61bd147f..5dec9321df7 100644 --- a/server/sonar-webserver-core/src/it/java/org/sonar/server/rule/registration/RulesRegistrantIT.java +++ b/server/sonar-webserver-core/src/it/java/org/sonar/server/rule/registration/RulesRegistrantIT.java @@ -275,7 +275,7 @@ class RulesRegistrantIT { @Test void insert_then_remove_rule() { - String ruleKey = secure().randomAlphanumeric(5); + String ruleKey = secure().nextAlphanumeric(5); // register one rule executeWithPluginRules(context -> { diff --git a/server/sonar-webserver-pushapi/src/test/java/org/sonar/server/pushapi/qualityprofile/QualityProfileChangeEventServiceImplTest.java b/server/sonar-webserver-pushapi/src/test/java/org/sonar/server/pushapi/qualityprofile/QualityProfileChangeEventServiceImplTest.java index c6fee35dd7d..02619792635 100644 --- a/server/sonar-webserver-pushapi/src/test/java/org/sonar/server/pushapi/qualityprofile/QualityProfileChangeEventServiceImplTest.java +++ b/server/sonar-webserver-pushapi/src/test/java/org/sonar/server/pushapi/qualityprofile/QualityProfileChangeEventServiceImplTest.java @@ -25,7 +25,6 @@ import java.util.Collections; import java.util.Deque; import java.util.List; import java.util.Map; -import java.util.Random; import java.util.Set; import java.util.function.Consumer; import org.junit.jupiter.api.Test; -- 2.39.5