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

Commit 08ccf521 authored by Jeff DeCew's avatar Jeff DeCew
Browse files

un-deprecate withArgCaptor

There's no direct alternative to import.

Bug: 359670968
Change-Id: I7c807d8705e211a5028471ea4be24389f9a59095
Flag: TEST_ONLY
Test: presubmit
parent 43cef1e1
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