提交 77b2c4e1 编写于 作者: C Chris Beams

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

上级 88e336cf
......@@ -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");
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册