THRIFT-5762 Fix spotless errors

Run `gradlew :spotlessApply` to apply the correct coding style.

Update kotlin compiler to support `getEmptyResultInstance`

https://github.com/apache/thrift/pull/2939 added the feature to create
an instance of the result object without having to use the
ProcessFunction.
The Kotlin compiler re-uses the java lib so this commit udpates the
Kotlin compiler to support this feature as well.
4 files changed