holunda-io / camunda-testing

Wraps the common testing libraries and provides tools/helpers and best practices

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Kotlin/Java interop: let OnPreInit/... work with Java Consumer and kotlin (T) -> Unit

jangalinski opened this issue · comments

When we use (T) -> Unit, java users must write return Unit.INSTANCE to fulfill the contract.
To avoid this, we built in a hard reference to java 8 Consumer {}

It would be nice to have a better solutuin if you are using the lib from kotlin, but for now its ok and kotlin users can still work with it.