Github user Abrasha commented on the issue:
https://github.com/apache/commons-lang/pull/217
@PascalSchumacher, no problem!
```
@Test
public void testAnnotationsOfDifferingTypes() {
assertFalse(AnnotationUtils.equals(field1.getAnnotation(TestAnnotation.class),
field4.getAnnotation(NestAnnotation.class)));
assertFalse(AnnotationUtils.equals(field4.getAnnotation(NestAnnotation.class),
field1.getAnnotation(TestAnnotation.class)));
}
```
This test is successful, but checks a different behaviour than expected.
`field4.getAnnotation(NestAnnotation.class)` is expected to return an
annotation of type `NestAnnotation`, but actually it returns `null` because the
Retention of annotation is set to default.
As a result, test did not cover quite important case.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---