Use varargs
This commit is contained in:
1 parent
d3c1bb95b9
commit
98a23a7980
1 file changed
+2
-2
@@ -206,7 +206,7 @@ public class LogSource {
|
||||
*/
|
||||
static public void setLogImplementation(final Class<?> logClass)
|
||||
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 {
|
||||
try {
|
||||
final Class<?> logClass = Class.forName(className);
|
||||
logImplctor = logClass.getConstructor(new Class<?>[] { String.class });
|
||||
logImplctor = logClass.getConstructor(String.class);
|
||||
} catch (final Throwable t) {
|
||||
logImplctor = null;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user