Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minor, move decodeDuration logic to a function reference (Kotlin#2550)
This is needed because once we enable indy lambdas by default (KT-45375), `@SuppressAnimalSniffer` annotation stops working, because animalsnifferMain does not handle indy lambdas correctly, and the `animalsnifferMain` task reports several errors about `java.time.Duration` being used. There are multiple ways to workaround this issue, for example we could annotate the lambda with `@JvmSerializableLambda` or compile the whole module with `-Xlambdas=class`, but I chose to use a simple function reference instead, since we don't generate those via invokedynamic yet (KT-45658), and it doesn't make the code any more difficult.
- Loading branch information