From 0efc44d25548ea5867f2ab7537cd9758eccd06d7 Mon Sep 17 00:00:00 2001 From: Seth Date: Wed, 18 Sep 2024 11:33:01 -0400 Subject: [PATCH] Replace deprecated newInstance() --- .../java/datawave/accumulo/util/security/UserAuthFunctions.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/datawave/accumulo/util/security/UserAuthFunctions.java b/src/main/java/datawave/accumulo/util/security/UserAuthFunctions.java index 72743f7..d873734 100644 --- a/src/main/java/datawave/accumulo/util/security/UserAuthFunctions.java +++ b/src/main/java/datawave/accumulo/util/security/UserAuthFunctions.java @@ -278,7 +278,7 @@ private static UserAuthFunctions createUserAuthFunctions() { return new UserAuthFunctions.Default(); } else { try { - return (UserAuthFunctions) Class.forName(classOverride).newInstance(); + return (UserAuthFunctions) Class.forName(classOverride).getDeclaredConstructor().newInstance(); } catch (Throwable t) { throw new RuntimeException(String.format("Failed to create instance of '%s'", classOverride), t); }