Tutorial by Examples: compilestatic

Enables a code to be statically compiled. Its bytecode will be closer to Java's, thus having better performance, though some dynamic features won't be available. @groovy.transform.CompileStatic class ListMath { def countSize(List<String> strings) { strings.collect { it.size() }...

Page 1 of 1