Community
Participate
Working Groups
By refactoring the class Bar below (using "Refactor/Move Type to New File"), the class Bar in the new file created does not get any @NonNull or @NonNullByDefault, resulting in a warning at the site where "foo" is called ("The expression of type 'Object' needs unchecked conversion to conform to '@NonNull Object'") @NonNullByDefault({ PARAMETER, RETURN_TYPE, FIELD, TYPE_PARAMETER, TYPE_BOUND, TYPE_ARGUMENT, ARRAY_CONTENTS }) class Foo { static void foo(Object a) { System.out.println(a); } static class Bar { static void bar(Object b) { foo(b); } } } --- AFTER ---
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug. If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.
This is a valid request.
.