Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(saga/test): replace deprecated method during upgrade to Kotl…
…in 1.5.32 (#6102) While upgrading Kotlin 1.5.32, encounter below error in clouddriver-saga and clouddriver-saga-test module: ``` > Task :clouddriver-saga:compileKotlin FAILED e: /clouddriver/clouddriver-saga/src/main/kotlin/com/netflix/spinnaker/clouddriver/saga/flow/SagaFlowIterator.kt: (185, 8): Using 'min(): T?' is an error. Use minOrNull instead. e: /clouddriver/clouddriver-saga/src/main/kotlin/com/netflix/spinnaker/clouddriver/saga/models/Saga.kt: (62, 63): Using 'max(): T?' is an error. Use maxOrNull instead. ``` ``` > Task :clouddriver-saga-test:compileKotlin FAILED 'compileJava' task (current target is 11) and 'compileKotlin' task (current target is 1.8) jvm target compatibility should be set to the same Java version. e: /clouddriver/clouddriver-saga-test/src/main/kotlin/com/netflix/spinnaker/clouddriver/saga/TestingSagaRepository.kt: (38, 78): Using 'max(): T?' is an error. Use maxOrNull instead. ``` To fix this error, replaced the deprecated method. Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information