diff --git a/org.springframework.context/src/main/java/org/springframework/jmx/export/assembler/InterfaceBasedMBeanInfoAssembler.java b/org.springframework.context/src/main/java/org/springframework/jmx/export/assembler/InterfaceBasedMBeanInfoAssembler.java index 8fff035714..4605a4161a 100644 --- a/org.springframework.context/src/main/java/org/springframework/jmx/export/assembler/InterfaceBasedMBeanInfoAssembler.java +++ b/org.springframework.context/src/main/java/org/springframework/jmx/export/assembler/InterfaceBasedMBeanInfoAssembler.java @@ -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"); } } }