From 7bf5607744b41a6ae6ebf83a2a2708926f2ab7e5 Mon Sep 17 00:00:00 2001 From: Scott Leberknight <174812+sleberknight@users.noreply.github.com> Date: Mon, 2 Sep 2024 13:37:01 -0400 Subject: [PATCH] Replace deprecated API usage in ApplicationErrorJdbc * Replace RandomStringUtils#randomAlphanumeric with RandomStringUtils.secure().nextAlphanumeric(...) --- .../kiwiproject/dropwizard/error/dao/ApplicationErrorJdbc.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/kiwiproject/dropwizard/error/dao/ApplicationErrorJdbc.java b/src/main/java/org/kiwiproject/dropwizard/error/dao/ApplicationErrorJdbc.java index c90cfb0..436bf02 100644 --- a/src/main/java/org/kiwiproject/dropwizard/error/dao/ApplicationErrorJdbc.java +++ b/src/main/java/org/kiwiproject/dropwizard/error/dao/ApplicationErrorJdbc.java @@ -44,7 +44,7 @@ public class ApplicationErrorJdbc { private static final String H2_DRIVER = "org.h2.Driver"; private static final String H2_IN_MEMORY_DB_URL = "jdbc:h2:mem:dw-app-errors;DB_CLOSE_DELAY=-1"; private static final String H2_IN_MEMORY_DB_USERNAME = "appErrorUser"; - private static final String H2_IN_MEMORY_DB_PASSWORD = RandomStringUtils.randomAlphanumeric(20); + private static final String H2_IN_MEMORY_DB_PASSWORD = RandomStringUtils.secure().nextAlphanumeric(20); private static final String H2_EMBEDDED_IN_MEMORY_URL_PREFIX = "jdbc:h2:mem:"; private static final String H2_EMBEDDED_FILE_EXPLICIT_URL_PREFIX = "jdbc:h2:file:";