What is the static point {} inside the Groovy class?

What effect does static {} ?

There is one such code in SimpleXlsSlurper , for example.

+4
source share
1 answer

It makes no sense to have an empty static initializer, neither in Java nor in Groovy.

+6
source

All Articles