aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/links/DRI.kt
diff options
context:
space:
mode:
authorKamil Doległo <kamilok1965@interia.pl>2019-11-19 19:48:13 +0100
committerBłażej Kardyś <bkardys@virtuslab.com>2019-11-25 16:24:16 +0100
commitb837c526608b29c8dfc1e9c405097bb8171c648b (patch)
tree8d5fabbd9a5dd84ab783983348c16e59767a1564 /core/src/main/kotlin/links/DRI.kt
parente9a8dda329390fa5dff310b830ffb95b5f76232e (diff)
downloaddokka-b837c526608b29c8dfc1e9c405097bb8171c648b.tar.gz
dokka-b837c526608b29c8dfc1e9c405097bb8171c648b.tar.bz2
dokka-b837c526608b29c8dfc1e9c405097bb8171c648b.zip
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
Diffstat (limited to 'core/src/main/kotlin/links/DRI.kt')
-rw-r--r--core/src/main/kotlin/links/DRI.kt2
1 files changed, 1 insertions, 1 deletions
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) {