Map<String, List<ScannedAnnotation>> classesByAnnotation =
new HashMap<String, List<ScannedAnnotation>>();
List<ScannedAnnotation> classesWithThisAnnotation = null;
for (final Type cur : allTypes) {
annotations = cur.getAnnotations();
ScannedAnnotation toAdd = null;
for (AnnotationModel curAnnotation : annotations) {
String curAnnotationName = curAnnotation.getType().getName();
if (null == (classesWithThisAnnotation = classesByAnnotation.get(curAnnotationName))) {
classesWithThisAnnotation = new ArrayList<ScannedAnnotation>();
classesByAnnotation.put(curAnnotationName, classesWithThisAnnotation);
}
toAdd = new ScannedAnnotation() {
@Override
public boolean equals(Object obj) {
boolean result = false;
if (obj instanceof ScannedAnnotation) {