Package org.pkl.core.util
Annotation Type NonnullByDefault
-
@Documented @TypeQualifierDefault({METHOD,PARAMETER,TYPE_PARAMETER}) @Nonnull @Retention(RUNTIME) @Target(PACKAGE) public @interface NonnullByDefaultIndicates that method return types and method parameters in the annotated package areNonnullunless explicitly annotated withNullable.This annotation is a generalization of
ParametersAreNonnullByDefault. All Pkl packages containing Java code should carry this annotation.Ideally, this default would apply to every
ElementType.TYPE_USE, but I haven't been able to make this work reasonably in IntelliJ (https://youtrack.jetbrains.com/issue/IDEA-278618).