Reformatting this file
import spock.lang.Specification
class MySpec extends Specification {
def "test"() {
expect:
[] == []
toString()
}
}
results in this
import spock.lang.Specification
class MySpec extends Specification {
def "test"() {
expect:
[]== []toString()
}
}
Notice the space at the end of line 6

Groovy Plugin Version: Eclipse Groovy Development Tools 4.0.0.v202012170419-e2012
Eclipse version: Version: 2020-12 (4.18.0) Build id: 20201210-1552
Reformatting this file
results in this
Notice the space at the end of line 6

Groovy Plugin Version: Eclipse Groovy Development Tools 4.0.0.v202012170419-e2012
Eclipse version: Version: 2020-12 (4.18.0) Build id: 20201210-1552