Introduce a compiler X flag to enable enhancing not null annotated type parameter's types to definitely not null types
This commit is contained in:
+6
@@ -0,0 +1,6 @@
|
||||
import org.checkerframework.checker.nullness.qual.NonNull;
|
||||
import org.checkerframework.checker.nullness.qual.Nullable;
|
||||
|
||||
public interface Java<T extends @Nullable Object> {
|
||||
@NonNull T getFoo();
|
||||
}
|
||||
Reference in New Issue
Block a user