Inspectopedia
 
2024.3

Method can only be overridden

Warning
Reliability
New
Last modified: 03 December 2024

Reports calls to API methods marked with @ApiStatus.OverrideOnly.

The @ApiStatus.OverrideOnly annotation indicates that the method is part of SPI (Service Provider Interface). Clients of the declaring library should implement or override such methods, not call them directly. Marking a class or interface with this annotation is the same as marking every method with it.