Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@
import org.checkerframework.checker.formatter.qual.FormatMethod;
import org.checkerframework.checker.initialization.qual.UnderInitialization;
import org.checkerframework.checker.interning.qual.FindDistinct;
import org.checkerframework.checker.nullness.qual.EnsuresNonNullIf;
import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
import org.checkerframework.checker.signature.qual.CanonicalName;
Expand Down Expand Up @@ -3364,18 +3363,13 @@ public final AnnotatedExecutableType fromElement(ExecutableElement elt) {

/**
* Returns true if the given annotation is a part of the type system under which this type factory
* operates. Null is never a supported qualifier; the parameter is nullable to allow the result of
* canonicalAnnotation to be passed in directly.
* operates.
*
* @param a any annotation
* @return true if that annotation is part of the type system under which this type factory
* operates, false otherwise
*/
@EnsuresNonNullIf(expression = "#1", result = true)
public boolean isSupportedQualifier(@Nullable AnnotationMirror a) {
if (a == null) {
return false;
}
public boolean isSupportedQualifier(AnnotationMirror a) {
return isSupportedQualifier(AnnotationUtils.annotationName(a));
Comment thread
mernst marked this conversation as resolved.
}

Expand Down