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