From: David ‘Bombe’ Roden Date: Fri, 13 Oct 2017 05:59:49 +0000 (+0200) Subject: Let Kotlin generate the overloaded constructors for Java X-Git-Tag: 0.9.8^2~33 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=d65153874ae16388183cf76c4b0b4ccdcfe03310;p=Sone.git Let Kotlin generate the overloaded constructors for Java --- diff --git a/src/main/kotlin/net/pterodactylus/sone/text/LinkPart.kt b/src/main/kotlin/net/pterodactylus/sone/text/LinkPart.kt index 7099b93..3563b37 100644 --- a/src/main/kotlin/net/pterodactylus/sone/text/LinkPart.kt +++ b/src/main/kotlin/net/pterodactylus/sone/text/LinkPart.kt @@ -5,8 +5,4 @@ package net.pterodactylus.sone.text * attributes: the link itself, the text that is shown instead of the link, and * an explanatory text that can be displayed e.g. as a tooltip. */ -data class LinkPart(val link: String, override val text: String, val title: String) : Part { - - constructor(link: String, text: String) : this(link, text, link) - -} +data class LinkPart @JvmOverloads constructor(val link: String, override val text: String, val title: String = link) : Part