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

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