Inspectopedia
 
2024.3

@POJO without @CompileStatic

Warning
Sanity
New
Last modified: 03 December 2024

Reports annotation @groovy.transform.stc.POJO applied without @groovy.transform.CompileStatic.

Annotation @POJO changes compilation process of Groovy classes to bytecode. It has no effect without explicitly enabled static compilation (which is done via @CompileStatic annotation).

Example: