Closed GoogleCodeExporter closed 9 years ago
I modified Store. getAllTypesAnnotatedWith() as follows and it now does what I
expect. And the JUnit tests
still succeed :-)
The change consists of adding the test
isInheritedAnnotation(annotation) &&
to the "else if".
public Set<String> getAllTypesAnnotatedWith(final String annotation) {
ImmutableSet.Builder<String> result = ImmutableSet.builder();
for (String typeAnnotatedWith : get(TypeAnnotationsScanner.class, annotation)) {
result.add(typeAnnotatedWith);
if (isAnnotation(typeAnnotatedWith)) {
result.addAll(getTypesAnnotatedWith(annotation));
} else if (isInheritedAnnotation(annotation) && hasSubTypes(typeAnnotatedWith)) {
result.addAll(getSubTypesOf(typeAnnotatedWith));
}
}
return result.build();
}
Original comment by stephen....@gmail.com
on 26 Jan 2010 at 4:50
fixed on trunk
Original comment by ronm...@gmail.com
on 14 May 2010 at 2:23
Original comment by ronm...@gmail.com
on 17 May 2010 at 4:21
Original issue reported on code.google.com by
stephen....@gmail.com
on 25 Jan 2010 at 6:37Attachments: