diff --git a/nullaway/src/main/java/com/uber/nullaway/NullabilityUtil.java b/nullaway/src/main/java/com/uber/nullaway/NullabilityUtil.java index 9199e2011f..4eb3c99eae 100644 --- a/nullaway/src/main/java/com/uber/nullaway/NullabilityUtil.java +++ b/nullaway/src/main/java/com/uber/nullaway/NullabilityUtil.java @@ -344,8 +344,8 @@ private static boolean isDirectTypeUseAnnotation( // dimensions are *not* treated as applying to the top-level type, consistent with the JSpecify // spec. // Outside of JSpecify mode, annotations which are *not* on the inner type are not treated as - // being applied to the inner type. This can be bypassed the LegacyAnnotationLocations flag, in - // which annotations on all locations are treated as applying to the inner type. + // being applied to the inner type. This is bypassed when the LegacyAnnotationLocations flag is + // passed, in which case annotations on all locations are treated as applying to the inner type. // We don't allow mixing of inner types and array dimensions in the same location // (i.e. `Foo.@Nullable Bar []` is meaningless). // These aren't correct semantics for type use annotations, but a series of hacky