diff --git a/jdk-recent-unit-tests/src/test/java/com/uber/nullaway/jdk17/NullAwayRecordTests.java b/jdk-recent-unit-tests/src/test/java/com/uber/nullaway/jdk17/NullAwayRecordTests.java index 1b0b7a997a..a9b5a1eb1e 100644 --- a/jdk-recent-unit-tests/src/test/java/com/uber/nullaway/jdk17/NullAwayRecordTests.java +++ b/jdk-recent-unit-tests/src/test/java/com/uber/nullaway/jdk17/NullAwayRecordTests.java @@ -242,6 +242,7 @@ public void recordDeconstructionPatternSwitchCase() { " record Rec(Object first, @Nullable Object second) { }", " int recordDeconstructionSwitchCase(Object obj) {", " return switch (obj) {", + " // TODO: NullAway should report a warning here!", " case Rec(Object f, @Nullable Object s) -> s.toString().length();", " default -> 0;", " };",