@Override public Collection<AnnotationValue> getAnnotations() { Collection<AnnotationValue> result = methodAnnotations.values(); if (result.isEmpty() && isBridge()) { XMethod to = bridgeTo(); if (to != null) { result = to.getAnnotations(); } } return result; }
private final boolean checkMethod(@Nonnull XMethod method) { boolean foundAny = false; if (relaxedNullReturn && containsNullness(method.getAnnotations(), NONNULL)) { BugInstance bug = new BugInstance(CheckRelaxingNullnessAnnotation.this, "NP_METHOD_RETURN_RELAXING_ANNOTATION", HIGH_PRIORITY);
@Override public Collection<AnnotationValue> getAnnotations() { Collection<AnnotationValue> result = methodAnnotations.values(); if (result.isEmpty() && isBridge()) { XMethod to = bridgeTo(); if (to != null) { result = to.getAnnotations(); } } return result; }
private final boolean checkMethod(@Nonnull XMethod method) { boolean foundAny = false; if (relaxedNullReturn && containsNullness(method.getAnnotations(), NONNULL)) { BugInstance bug = new BugInstance(CheckRelaxingNullnessAnnotation.this, "NP_METHOD_RETURN_RELAXING_ANNOTATION", HIGH_PRIORITY);