From 49bb92a8a74ec5d8d97bbc1ef3dbf0ee66e43977 Mon Sep 17 00:00:00 2001 From: Manu Sridharan Date: Mon, 7 Oct 2024 13:48:28 -0700 Subject: [PATCH] tweak comment --- nullaway/src/main/java/com/uber/nullaway/NullabilityUtil.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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