Skip to content

Commit

Permalink
Removing deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
ilgrosso committed Apr 17, 2024
1 parent 2d29396 commit 024fe8f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<>();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -75,7 +75,7 @@ public static String generateRandomNonAlphanumericChar(final char[] characters)
}

return found;
}).build().generate(1);
}).get().generate(1);
}

public static int generateRandomInt(final int startInclusive, final int endExclusive) {
Expand Down

0 comments on commit 024fe8f

Please sign in to comment.