import org.revapi.java.spi.JavaAnnotationElement;
public final class Added extends CheckBase {
@Override
protected List<Difference> doVisitAnnotation(JavaAnnotationElement oldAnnotation,
JavaAnnotationElement newAnnotation) {
<BUG>if (oldAnnotation == null && newAnnotation != null) {
return Collections.singletonList(</BUG>
createDifference(Code.ANNOTATION_ADDED, Code.attachmentsFor(null, newAnnotation))
);
}

import org.revapi.java.spi.JavaAnnotationElement;
public final class Added extends CheckBase {
@Override
protected List<Difference> doVisitAnnotation(JavaAnnotationElement oldAnnotation,
JavaAnnotationElement newAnnotation) {
if (oldAnnotation == null && newAnnotation != null && isAccessible(newAnnotation.getParent())) {
return Collections.singletonList(
createDifference(Code.ANNOTATION_ADDED, Code.attachmentsFor(null, newAnnotation))
);
}
