diff options
author | Dejan Milisavljevic <dejan.milisavljevic@sonarsource.com> | 2024-10-14 15:10:39 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2024-10-16 20:03:02 +0000 |
commit | 52ce30d1fffd1383ee05b4833f34ab6a5bdfa711 (patch) | |
tree | 1015b29d987efb8918ac5d34bbdd974d7814374e /server | |
parent | c63283fce767013e11ca6bf1c26170a11c0d48da (diff) | |
download | sonarqube-52ce30d1fffd1383ee05b4833f34ab6a5bdfa711.tar.gz sonarqube-52ce30d1fffd1383ee05b4833f34ab6a5bdfa711.zip |
SONAR-23250 Fix issues raised by the scan
Diffstat (limited to 'server')
2 files changed, 1 insertions, 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; |