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
@@ -52,7 +52,7 @@ public abstract class ValidationUtils {
|
||||
* the validation of the supplied object's type
|
||||
*/
|
||||
public static void invokeValidator(Validator validator, Object obj, Errors errors) {
|
||||
invokeValidator(validator, obj, errors, (Class[]) null);
|
||||
invokeValidator(validator, obj, errors, (Object[]) null);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -72,7 +72,7 @@ public class MethodExclusionMBeanInfoAssemblerTests extends AbstractJmxAssembler
|
||||
Properties ignored = new Properties();
|
||||
ignored.setProperty(beanKey, "dontExposeMe,setSuperman");
|
||||
assembler.setIgnoredMethodMappings(ignored);
|
||||
Method method = JmxTestBean.class.getMethod("dontExposeMe", null);
|
||||
Method method = JmxTestBean.class.getMethod("dontExposeMe");
|
||||
assertFalse(assembler.isNotIgnored(method, beanKey));
|
||||
// this bean does not have any ignored methods on it, so must obviously not be ignored...
|
||||
assertTrue(assembler.isNotIgnored(method, "someOtherBeanKey"));
|
||||
|
||||
Reference in New Issue
Block a user