From 1ad3667d30dd82213ae47bea2c267188f003b2c7 Mon Sep 17 00:00:00 2001 From: Matteo Mara Date: Mon, 7 Oct 2024 18:13:33 +0200 Subject: NO-JIRA Stop using deprecated methods from RandomStringUtils --- sonar-ws/src/test/java/org/sonarqube/ws/client/HttpConnectorTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sonar-ws') diff --git a/sonar-ws/src/test/java/org/sonarqube/ws/client/HttpConnectorTest.java b/sonar-ws/src/test/java/org/sonarqube/ws/client/HttpConnectorTest.java index 981d0eb145d..411dd9b9bbc 100644 --- a/sonar-ws/src/test/java/org/sonarqube/ws/client/HttpConnectorTest.java +++ b/sonar-ws/src/test/java/org/sonarqube/ws/client/HttpConnectorTest.java @@ -251,7 +251,7 @@ public class HttpConnectorTest { @Test public void systemPassCode_sets_header_when_value_is_not_null() throws InterruptedException { answerHelloWorld(); - String systemPassCode = new Random().nextBoolean() ? "" : RandomStringUtils.randomAlphanumeric(21); + String systemPassCode = new Random().nextBoolean() ? "" : RandomStringUtils.secure().nextAlphanumeric(21); underTest = HttpConnector.newBuilder() .url(serverUrl) .systemPassCode(systemPassCode) -- cgit v1.2.3