aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorDejan Milisavljevic <dejan.milisavljevic@sonarsource.com>2024-10-14 15:10:39 +0200
committersonartech <sonartech@sonarsource.com>2024-10-16 20:03:02 +0000
commit52ce30d1fffd1383ee05b4833f34ab6a5bdfa711 (patch)
tree1015b29d987efb8918ac5d34bbdd974d7814374e /server
parentc63283fce767013e11ca6bf1c26170a11c0d48da (diff)
downloadsonarqube-52ce30d1fffd1383ee05b4833f34ab6a5bdfa711.tar.gz
sonarqube-52ce30d1fffd1383ee05b4833f34ab6a5bdfa711.zip
SONAR-23250 Fix issues raised by the scan
Diffstat (limited to 'server')
-rw-r--r--server/sonar-webserver-core/src/it/java/org/sonar/server/rule/registration/RulesRegistrantIT.java2
-rw-r--r--server/sonar-webserver-pushapi/src/test/java/org/sonar/server/pushapi/qualityprofile/QualityProfileChangeEventServiceImplTest.java1
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;