/** * <p> * Compare {@link AnnotatedCallable}s for equality. * </p> * * <p> * Two {@link AnnotatedCallable}s are considered equal if they have the same * underlying callable and annotations. * </p> */ public static boolean compareAnnotatedCallable(AnnotatedCallable<?> m1, AnnotatedCallable<?> m2) { if (!m1.getJavaMember().equals(m2.getJavaMember())) { return false; } if (!compareAnnotated(m1, m2)) { return false; } return compareAnnotatedParameters(m1.getParameters(), m2.getParameters()); }