Replace deprecated usages of max/min with maxOrNull/minOrNull

This commit is contained in:
Alexander Udalov
2020-08-13 18:14:02 +02:00
parent 81dda96ece
commit a9ddf02556
48 changed files with 86 additions and 84 deletions
@@ -91,7 +91,7 @@ class ParametersBuilder private constructor() {
}
fun buildParameters(): Parameters {
var nextDeclarationIndex = (params.maxBy { it.declarationIndex }?.declarationIndex ?: -1) + 1
var nextDeclarationIndex = (params.maxOfOrNull { it.declarationIndex } ?: -1) + 1
return Parameters(params.map { param ->
if (param is CapturedParamInfo) {