Inspectopedia
 
2024.3

Unstable type is used in signature

Warning
Reliability
New
Last modified: 03 December 2024

Reports declarations of classes, methods, and fields that reference an unstable API type in the signature, but are not marked with the same unstable annotation.

This inspection ensures that the signatures of a public API do not expose any unstable (internal, experimental) types. For example, if a method returns an experimental class, the method itself is considered experimental because incompatible changes of the type (deletion or move to another package) lead to incompatible method signature changes.

Use the list below to specify which annotations mark an unstable API.