Fix [varargs] compiler warnings
Remove unnecessary 'null' argument from calls to vararg supported methods and fix cast in ValidationUtils.invokeValidator().
This commit is contained in:
committed by
Chris Beams
parent
731d5be644
commit
7f0aa5cfb2
@@ -314,14 +314,14 @@ public class CallbacksSecurityTests {
|
||||
}
|
||||
|
||||
final CustomCallbackBean bean = new CustomCallbackBean();
|
||||
final Method method = bean.getClass().getMethod("destroy", null);
|
||||
final Method method = bean.getClass().getMethod("destroy");
|
||||
method.setAccessible(true);
|
||||
|
||||
try {
|
||||
AccessController.doPrivileged(new PrivilegedExceptionAction<Object>() {
|
||||
|
||||
public Object run() throws Exception {
|
||||
method.invoke(bean, null);
|
||||
method.invoke(bean);
|
||||
return null;
|
||||
}
|
||||
}, acc);
|
||||
|
||||
Reference in New Issue
Block a user