Advance max/min(By/With) deprecation level to ERROR

This commit is contained in:
Abduqodiri Qurbonzoda
2021-03-25 22:05:28 +03:00
parent d70edeb38b
commit b0f1ddc91e
93 changed files with 476 additions and 572 deletions
@@ -32,7 +32,7 @@ interface ProfilerHandler {
fun determinePhasePath(dumpPath: Path, profilerConfig: ProfilerConfig): Path {
val activityPath = dumpPath.parent.resolve(profilerConfig.path)
val runNumber =
(activityPath.toFile().listFiles()?.maxBy { it.name.toIntOrNull() ?: 0 }?.name?.toIntOrNull()
(activityPath.toFile().listFiles()?.maxOfOrNull { it.name.toIntOrNull() ?: 0 }
?: 0) + 1
val runPath = activityPath.resolve("$runNumber")
runPath.toFile().mkdirs()