From 42db378008a902939eb99cf272cbb3578dda56c1 Mon Sep 17 00:00:00 2001 From: Lars Andringa Date: Mon, 1 Jul 2024 13:28:18 +0200 Subject: [PATCH] Added doc --- mockito-kotlin/src/main/kotlin/org/mockito/kotlin/Matchers.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/mockito-kotlin/src/main/kotlin/org/mockito/kotlin/Matchers.kt b/mockito-kotlin/src/main/kotlin/org/mockito/kotlin/Matchers.kt index 1216411..474f494 100644 --- a/mockito-kotlin/src/main/kotlin/org/mockito/kotlin/Matchers.kt +++ b/mockito-kotlin/src/main/kotlin/org/mockito/kotlin/Matchers.kt @@ -78,6 +78,7 @@ inline fun anyArray(): Array { return ArgumentMatchers.any(Array::class.java) ?: arrayOf() } +/** Matches any Kotlin value class with the same boxed type by taking its boxed type. */ inline fun anyValueClass(): T { require(T::class.isValue) { "${T::class.qualifiedName} is not a value class."