Back to Intellij Community

GrPOJO

plugins/groovy/groovy-psi/resources/inspectionDescriptions/GrPOJO.html

2025.3-rc-2348 B
Original Source

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:

@POJO // reports @POJO
  class A {}