Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7c5321f0 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix nullability specification for Kotlin 2.1" into main

parents 44a0a044 423bbb6f
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -247,20 +247,20 @@ class PinInputViewModelTest : SysuiTestCase() {
}

private class PinInputSubject
private constructor(metadata: FailureMetadata, private val actual: PinInputViewModel) :
private constructor(metadata: FailureMetadata, private val actual: PinInputViewModel?) :
    Subject(metadata, actual) {

    fun matches(mnemonics: String) {
        val actualMnemonics =
            actual.input
                .map { entry ->
            actual?.input
                ?.map { entry ->
                    when (entry) {
                        is Digit -> entry.input.digitToChar()
                        is ClearAll -> 'C'
                        else -> throw IllegalArgumentException()
                    }
                }
                .joinToString(separator = "")
                ?.joinToString(separator = "")

        if (mnemonics != actualMnemonics) {
            failWithActual(