File tree 2 files changed +8
-7
lines changed
src/jmh/kotlin/benchmarks/flow/scrabble
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") {
54
54
}
55
55
56
56
dependencies {
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" )
61
61
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" ))
64
65
65
66
// add jmh dependency on main
66
67
" jmhImplementation" (sourceSets.main.get().runtimeClasspath)
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ open class SequencePlaysScrabble : ShakespearePlaysScrabble() {
30
30
val bonusForDoubleLetter: (String ) -> Int = { word: String ->
31
31
toBeMaxed(word)
32
32
.map { letterScores[it - ' a' .toInt()] }
33
- .max ()!!
33
+ .maxOrNull ()!!
34
34
}
35
35
36
36
val score3: (String ) -> Int = { word: String ->
You can’t perform that action at this time.
0 commit comments