1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

toString()

This commit is contained in:
Cedric Beust 2016-03-15 03:04:36 +04:00
parent 66059334ba
commit d2e6b7ad78
2 changed files with 4 additions and 0 deletions

View file

@ -44,6 +44,8 @@ class Kurl(val hostInfo: HostConfig) {
}
}
override fun toString() = hostInfo.toString()
val connection : URLConnection
get() {
val result = URL(hostInfo.url).openConnection()

View file

@ -9,6 +9,8 @@ open class SimpleDep(open val mavenId: MavenId) : UnversionedDep(mavenId.groupId
}
}
override fun toString() = mavenId.toId
val version: String get() =
if (mavenId.version == null) {
""