This is an automated email from the ASF dual-hosted git repository.
ilgrosso pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/syncope.git
The following commit(s) were added to refs/heads/master by this push:
new 024fe8fb9a Removing deprecations
024fe8fb9a is described below
commit 024fe8fb9a5aa5a49266dd20abe5c487c3c8d539
Author: Francesco Chicchiriccò <[email protected]>
AuthorDate: Wed Apr 17 09:17:03 2024 +0200
Removing deprecations
---
.../syncope/client/enduser/panels/captcha/CaptchaPanel.java | 2 +-
.../apache/syncope/core/spring/security/SecureRandomUtils.java | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git
a/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/panels/captcha/CaptchaPanel.java
b/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/panels/captcha/CaptchaPanel.java
index 007e26b695..7e3b7a077c 100644
---
a/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/panels/captcha/CaptchaPanel.java
+++
b/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/panels/captcha/CaptchaPanel.java
@@ -38,7 +38,7 @@ public class CaptchaPanel<T> extends Panel {
private static final RandomStringGenerator RANDOM_LETTERS = new
RandomStringGenerator.Builder().
usingRandom(RANDOM::nextInt).
withinRange('a', 'z').
- build();
+ get();
private final Model<String> captchaText = new Model<>();
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 6b69e2da86..0b38f5c832 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
@@ -35,17 +35,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);
@@ -75,7 +75,7 @@ public final class SecureRandomUtils {
}
return found;
- }).build().generate(1);
+ }).get().generate(1);
}
public static int generateRandomInt(final int startInclusive, final int
endExclusive) {