Package dev.hilla

Annotation Type Nonnull


  • @Documented
    @Retention(RUNTIME)
    @Target(TYPE_USE)
    public @interface Nonnull
    Annotation to mark either field, method, parameter or type parameter as non-nullable. It is used by Typescript Generator as a source of type nullability information. Since Typescript Generator works with any annotation with case-insensitive `nonnull` name, this annotation exists only for convenience because the traditional `javax.annotation.Nonnull` annotation is not applicable to type parameters.