mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
SPR-5615 - Improved error message: s/is no interface/is not an interface
This commit is contained in:
+3
-2
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user