Annotation Type JsNonNull


  • @Retention(RUNTIME)
    @Target(TYPE_USE)
    @Documented
    public @interface JsNonNull
    JsNonNull marks a type as non-nullable indicating that program elements of such a type can not hold a null value.

    Note that JsNonNull can only be used in a JsConstructor, a JsMethod, a JsProperty or a JsFunction method.

    This annotation is informational in the GWT compiler but other compilers or tools might use it for example to annotate types in the output JavaScript program.