1
0

Use varargs

This commit is contained in:
Gary Gregory
2023-11-26 10:03:51 -05:00
parent d3c1bb95b9
commit 98a23a7980

View File

@@ -206,7 +206,7 @@ public class LogSource {
*/ */
static public void setLogImplementation(final Class<?> logClass) static public void setLogImplementation(final Class<?> logClass)
throws LinkageError, ExceptionInInitializerError, NoSuchMethodException, SecurityException { throws LinkageError, ExceptionInInitializerError, NoSuchMethodException, SecurityException {
logImplctor = logClass.getConstructor(new Class<?>[] { String.class }); logImplctor = logClass.getConstructor(String.class);
} }
/** /**
@@ -222,7 +222,7 @@ public class LogSource {
static public void setLogImplementation(final String className) throws LinkageError, SecurityException { static public void setLogImplementation(final String className) throws LinkageError, SecurityException {
try { try {
final Class<?> logClass = Class.forName(className); final Class<?> logClass = Class.forName(className);
logImplctor = logClass.getConstructor(new Class<?>[] { String.class }); logImplctor = logClass.getConstructor(String.class);
} catch (final Throwable t) { } catch (final Throwable t) {
logImplctor = null; logImplctor = null;
} }