From 1b1a5b1008612606a36062a99e7f5e21eb704680 Mon Sep 17 00:00:00 2001 From: Manu Sridharan Date: Mon, 2 Jan 2023 13:52:39 -0800 Subject: [PATCH] another test --- .../src/test/java/com/uber/nullaway/NullAwayCoreTests.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/nullaway/src/test/java/com/uber/nullaway/NullAwayCoreTests.java b/nullaway/src/test/java/com/uber/nullaway/NullAwayCoreTests.java index 5e6d0ec06f..e8ed525317 100644 --- a/nullaway/src/test/java/com/uber/nullaway/NullAwayCoreTests.java +++ b/nullaway/src/test/java/com/uber/nullaway/NullAwayCoreTests.java @@ -1110,12 +1110,13 @@ public void typeUseAnnotationOnInnerMultiLevel() { "import org.checkerframework.checker.nullness.qual.Nullable;", "class A { class B { class C {} } }", "class Test {", - " // At some point, we should only treat the last of these declarations", - " // as making the field @Nullable. For now, any of them makes the field", - " // @Nullable.", + " // At some point, we should not treat the foo1 and foo2 as @Nullable.", + " // For now we do, for ease of compatibility.", " @Nullable A.B.C foo1 = null;", " A.@Nullable B.C foo2 = null;", " A.B.@Nullable C foo3 = null;", + " // what should we do here?", + " A.B.@Nullable C [][] foo4 = null;", "}") .doTest(); }