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:
Phillip Webb
2012-12-19 14:40:17 -08:00
committed by Chris Beams
parent 731d5be644
commit 7f0aa5cfb2
6 changed files with 14 additions and 14 deletions

View File

@@ -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);