Merge "Suppress inline warning" into udc-dev

This commit is contained in:
Shai Barack
2023-04-04 18:25:08 +00:00
committed by Android (Google) Code Review

View File

@@ -26,4 +26,5 @@ inline fun <T : Any, R> transform(value: T?, block: (T) -> R): R? = value?.let(b
/**
* Assists type-checking to unpack a Java Optional into T?
*/
@Suppress("NOTHING_TO_INLINE")
inline fun <T> Optional<T>.getOrNull(): T? = orElse(null)