From b837c526608b29c8dfc1e9c405097bb8171c648b Mon Sep 17 00:00:00 2001 From: Kamil Doległo Date: Tue, 19 Nov 2019 19:48:13 +0100 Subject: Fix bad DRI parsing from string This code produced list of params with an empty string value instead of an empty list, which made some DRIs not equal --- core/src/main/kotlin/links/DRI.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/src') diff --git a/core/src/main/kotlin/links/DRI.kt b/core/src/main/kotlin/links/DRI.kt index 67b8643b..605840a7 100644 --- a/core/src/main/kotlin/links/DRI.kt +++ b/core/src/main/kotlin/links/DRI.kt @@ -90,7 +90,7 @@ data class Callable(val name: String, val receiver: String, val returnType: Stri name.toString(), receiver, returnType, - params.split('#') + params.split('#').filter { it.isNotBlank() } ) } } catch (e: Throwable) { -- cgit