Github user danielsoro commented on a diff in the pull request:

    https://github.com/apache/tomee/pull/219#discussion_r236279011
  
    --- Diff: 
container/openejb-core/src/main/java/org/apache/openejb/config/AnnotationDeployer.java
 ---
    @@ -2939,12 +2939,14 @@ public EjbModule deploy(final EjbModule ejbModule) 
throws OpenEJBException {
                             }
     
                             if (interfaces.size() != 1) {
    -                            String msg = "When annotating a bean class as 
@MessageDriven without declaring messageListenerInterface, the bean must 
implement exactly one interface, no more and no less. beanClass=" + 
clazz.getName() + " interfaces=";
    +                            StringBuilder msg = new StringBuilder("When 
annotating a bean class as @MessageDriven without" +
    --- End diff --
    
    What do you think to use String.format in cases like that?


---

Reply via email to