|
@@ -125,7 +125,7 @@ public class Logging {
|
125
|
125
|
if (isAvailable) {
|
126
|
126
|
try {
|
127
|
127
|
final Method check = log.getClass().getMethod(level.getCheckMethodName());
|
128
|
|
- return (Boolean) check.invoke(log, new Object[0]);
|
|
128
|
+ return (Boolean) check.invoke(log);
|
129
|
129
|
} catch (NoSuchMethodException | IllegalAccessException | InvocationTargetException nsme) {
|
130
|
130
|
}
|
131
|
131
|
}
|
|
@@ -157,10 +157,10 @@ public class Logging {
|
157
|
157
|
try {
|
158
|
158
|
if (throwable == null) {
|
159
|
159
|
final Method method = log.getClass().getMethod(level.getMethodName(), String.class);
|
160
|
|
- method.invoke(log, new Object[]{message});
|
|
160
|
+ method.invoke(log, message);
|
161
|
161
|
} else {
|
162
|
162
|
final Method method = log.getClass().getMethod(level.getMethodName(), String.class, Throwable.class);
|
163
|
|
- method.invoke(log, new Object[]{message, throwable});
|
|
163
|
+ method.invoke(log, message, throwable);
|
164
|
164
|
}
|
165
|
165
|
} catch (NoSuchMethodException | IllegalAccessException | InvocationTargetException nsme) {
|
166
|
166
|
}
|