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:
Victor Petukhov
2021-10-19 13:11:52 +03:00
parent abe607f4ea
commit 012f1f6013
8 changed files with 36 additions and 0 deletions
+6
View File
@@ -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();
}