/** * Get the names of classes that have a method with an annotation of the given type. * * @param annotation * the method annotation. * @return The sorted list of the names of classes with a method that has an annotation of the given type, or * the empty list if none. */ public List<String> getNamesOfClassesWithMethodAnnotation(final Class<?> annotation) { return getNamesOfClassesWithMethodAnnotation(scanSpec.getAnnotationName(annotation)); }
final String annotationName = getAnnotationName(annotation); for (final String classWithMethodAnnotation : scanResult .getNamesOfClassesWithMethodAnnotation(annotationName)) { Class<?> cls = null; try {