File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
src/jmh/kotlin/benchmarks/flow/scrabble Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -54,13 +54,14 @@ tasks.named<Jar>("jmhJar") {
5454}
5555
5656dependencies {
57- compile (" org.openjdk.jmh:jmh-core:1.26" )
58- compile (" io.projectreactor:reactor-core:${version(" reactor" )} " )
59- compile (" io.reactivex.rxjava2:rxjava:2.1.9" )
60- compile (" com.github.akarnokd:rxjava2-extensions:0.20.8" )
57+ implementation (" org.openjdk.jmh:jmh-core:1.26" )
58+ implementation (" io.projectreactor:reactor-core:${version(" reactor" )} " )
59+ implementation (" io.reactivex.rxjava2:rxjava:2.1.9" )
60+ implementation (" com.github.akarnokd:rxjava2-extensions:0.20.8" )
6161
62- compile(" com.typesafe.akka:akka-actor_2.12:2.5.0" )
63- compile(project(" :kotlinx-coroutines-core" ))
62+ implementation(" com.typesafe.akka:akka-actor_2.12:2.5.0" )
63+ implementation(project(" :kotlinx-coroutines-core" ))
64+ implementation(project(" :kotlinx-coroutines-reactive" ))
6465
6566 // add jmh dependency on main
6667 " jmhImplementation" (sourceSets.main.get().runtimeClasspath)
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ open class SequencePlaysScrabble : ShakespearePlaysScrabble() {
3030 val bonusForDoubleLetter: (String ) -> Int = { word: String ->
3131 toBeMaxed(word)
3232 .map { letterScores[it - ' a' .toInt()] }
33- .max ()!!
33+ .maxOrNull ()!!
3434 }
3535
3636 val score3: (String ) -> Int = { word: String ->
You can’t perform that action at this time.
0 commit comments