Use varargs
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user