https://issues.apache.org/bugzilla/show_bug.cgi?id=56611
Bug ID: 56611 Summary: No need to call method.isAnnotationPresent() then call method.getAnnotation. Product: Tomcat 7 Version: 7.0.47 Hardware: All OS: Mac OS X 10.4 Status: NEW Severity: enhancement Priority: P2 Component: Catalina Assignee: dev@tomcat.apache.org Reporter: jian...@foxmail.com Created attachment 31702 --> https://issues.apache.org/bugzilla/attachment.cgi?id=31702&action=edit org.apache.catalina.core.DefaultInstanceManager Just call method.getAnnotation(EJB.class) once, since isAnnotationPresent is also implmented by calling getAnnotation. java.lang.reflect.AccessibleObject: public boolean isAnnotationPresent( Class<? extends Annotation> annotationClass) { return getAnnotation(annotationClass) != null; } -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org