This is an automated email from the ASF dual-hosted git repository.
ilgrosso pushed a commit to branch 2_1_X
in repository https://gitbox.apache.org/repos/asf/syncope.git
The following commit(s) were added to refs/heads/2_1_X by this push:
new 1497f8ded6 Removing deprecations
1497f8ded6 is described below
commit 1497f8ded6236733dbcce11c1d465a1968cef77a
Author: Francesco Chicchiriccò <[email protected]>
AuthorDate: Wed Apr 17 09:38:44 2024 +0200
Removing deprecations
---
.../apache/syncope/client/enduser/resources/CaptchaResource.java | 2 +-
.../apache/syncope/core/spring/security/SecureRandomUtils.java | 8 ++++----
pom.xml | 4 ++--
3 files changed, 7 insertions(+), 7 deletions(-)
diff --git
a/client/enduser/src/main/java/org/apache/syncope/client/enduser/resources/CaptchaResource.java
b/client/enduser/src/main/java/org/apache/syncope/client/enduser/resources/CaptchaResource.java
index 7cbb5f5667..373e6aa2cf 100644
---
a/client/enduser/src/main/java/org/apache/syncope/client/enduser/resources/CaptchaResource.java
+++
b/client/enduser/src/main/java/org/apache/syncope/client/enduser/resources/CaptchaResource.java
@@ -38,7 +38,7 @@ public class CaptchaResource extends CaptchaImageResource {
private static final RandomStringGenerator RANDOM_LETTERS = new
RandomStringGenerator.Builder().
usingRandom(RANDOM::nextInt).
withinRange('a', 'z').
- build();
+ get();
@Override
protected byte[] render() {
diff --git
a/core/spring/src/main/java/org/apache/syncope/core/spring/security/SecureRandomUtils.java
b/core/spring/src/main/java/org/apache/syncope/core/spring/security/SecureRandomUtils.java
index e60d2ccd78..bd3e1348ef 100644
---
a/core/spring/src/main/java/org/apache/syncope/core/spring/security/SecureRandomUtils.java
+++
b/core/spring/src/main/java/org/apache/syncope/core/spring/security/SecureRandomUtils.java
@@ -32,17 +32,17 @@ public final class SecureRandomUtils {
usingRandom(RANDOM::nextInt).
withinRange('0', 'z').
filteredBy(Character::isLetterOrDigit).
- build();
+ get();
private static final RandomStringGenerator FOR_LETTERS = new
RandomStringGenerator.Builder().
usingRandom(RANDOM::nextInt).
withinRange('a', 'z').
- build();
+ get();
private static final RandomStringGenerator FOR_NUMBERS = new
RandomStringGenerator.Builder().
usingRandom(RANDOM::nextInt).
withinRange('0', '9').
- build();
+ get();
private static final NoArgGenerator UUID_GENERATOR =
Generators.timeBasedEpochGenerator(RANDOM);
@@ -72,7 +72,7 @@ public final class SecureRandomUtils {
}
return found;
- }).build().generate(1);
+ }).get().generate(1);
}
public static UUID generateRandomUUID() {
diff --git a/pom.xml b/pom.xml
index fb8b7d7e6a..36b7763e5f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -444,7 +444,7 @@ under the License.
<commons-io.version>2.11.0</commons-io.version>
<commons-email.version>1.5</commons-email.version>
<commons-jexl.version>3.2.1</commons-jexl.version>
- <commons-lang.version>3.12.0</commons-lang.version>
+ <commons-lang.version>3.14.0</commons-lang.version>
<commons-text.version>1.12.0</commons-text.version>
<commons-logging.version>1.1.3</commons-logging.version>
@@ -2129,7 +2129,7 @@ under the License.
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
- <version>0.43.3</version>
+ <version>0.44.0</version>
</plugin>
<plugin>