MUST_USE

Signifies that the corresponding callable has a must-use status associated with its return value. A compiler might issue a warning if the return value is not used.

This status is set for all callables which were compiled with the -Xreturn-value-checker=full compiler flag, or placed inside a scope annotated with @MustUseReturnValues, unless they were annotated with @IgnorableReturnValue.

Overriding a MUST_USE callable also sets its status to MUST_USE.

Properties

Link copied to clipboard
Link copied to clipboard