SPR-5615 - Improved error message: s/is no interface/is not an interface

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@829 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
Chris Beams
2009-03-26 13:56:14 +00:00
parent 74c67dfaef
commit e39fc90fac
@@ -88,9 +88,10 @@ public class InterfaceBasedMBeanInfoAssembler extends AbstractConfigurableMBeanI
*/
public void setManagedInterfaces(Class[] managedInterfaces) {
if (managedInterfaces != null) {
for (Class ifc : managedInterfaces) {
for (Class<?> ifc : managedInterfaces) {
if (!ifc.isInterface()) {
throw new IllegalArgumentException("Management interface [" + ifc.getName() + "] is no interface");
throw new IllegalArgumentException(
"Management interface [" + ifc.getName() + "] is not an interface");
}
}
}