Community
Participate
Working Groups
Refiling the issue as misunderstood the original issue (Bug 431722). @NonNullByDefault class Y {} public class X { Y y; // Warning should be reported here. Y[] y1; // Warning should be reported. void bar () { y = new Y(); y1 = new Y[0]; } } Warnings should be reported as the fields y and y1 are not initialized either through constructor or initialization as part of field declaration. If any one of the constructors does not initialize the field we should report a warning. Thanks
*** Bug 431722 has been marked as a duplicate of this bug. ***
You still don't have a @NonNullByDefault affecting X. If you correct the test all expected warnings will be shown.