Drop redundant Suppress("RemoveExplicitTypeArguments")

This commit is contained in:
Mikhail Glukhikh
2022-01-25 10:57:53 +03:00
committed by Space
parent 02d74fbd87
commit ad0d0ca47f
13 changed files with 18 additions and 35 deletions
@@ -203,12 +203,11 @@ internal class MethodNodeExaminer(
for (index in insns.indices.reversed()) {
if (insns[index].opcode == Opcodes.ARETURN) continue
@Suppress("RemoveExplicitTypeArguments")
val newResult =
controlFlowGraph
.getSuccessorsIndices(index).plus(index)
.map(reachableReturnsIndices::get)
.fold<Set<Int>?, Set<Int>?>(mutableSetOf<Int>()) { acc, successorsResult ->
.fold<Set<Int>?, Set<Int>?>(mutableSetOf()) { acc, successorsResult ->
if (acc != null && successorsResult != null) acc + successorsResult else null
}