From 52e60fa5b7c4d9b66db52fbea35fd3b21d232957 Mon Sep 17 00:00:00 2001 From: MHeMoTexHuK Date: Tue, 28 Jun 2022 18:26:50 +0300 Subject: [PATCH] Fixed a name clash --- lib/src/main/kotlin/ElementUtil.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/main/kotlin/ElementUtil.kt b/lib/src/main/kotlin/ElementUtil.kt index f99d495..856d593 100644 --- a/lib/src/main/kotlin/ElementUtil.kt +++ b/lib/src/main/kotlin/ElementUtil.kt @@ -149,7 +149,7 @@ inline fun Element.findOrNull(elementName: String? = null): * * @throws IllegalArgumentException if there's no such element. */ -inline fun Element.find(elementName: String? = null): T { +inline fun Element.findElement(elementName: String? = null): T { return findOrNull(elementName) ?: throw IllegalArgumentException("Element with type ${T::class}${if (elementName == null) "" else " and name '$elementName'"} was not found") }