Inspectopedia
 
2024.3

Meaningless annotations targets on superclass

Error
New
Last modified: 03 December 2024

Reports meaningless annotation targets on superclasses since Kotlin 1.4.

Annotation targets such as @get: are meaningless on superclasses and are prohibited.

Example:

After the quick-fix is applied:

This inspection only reports if the Kotlin language level of the project or module is 1.4 or higher.