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

Commit 77343c5e authored by Jeff DeCew's avatar Jeff DeCew Committed by Android (Google) Code Review
Browse files

Merge "un-deprecate withArgCaptor" into main

parents 1f80f071 08ccf521
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -219,7 +219,7 @@ inline fun <reified T : Any> kotlinArgumentCaptor(): KotlinArgumentCaptor<T> =
 *
 * NOTE: this uses the KotlinArgumentCaptor to avoid the NullPointerException.
 */
@Deprecated("Replace with mockito-kotlin", level = WARNING)
// TODO(359670968): rewrite this to use mockito-kotlin
inline fun <reified T : Any> withArgCaptor(block: KotlinArgumentCaptor<T>.() -> Unit): T =
    kotlinArgumentCaptor<T>().apply { block() }.value