From 4a545658da384889cc6e2e71d51ea714f6732a8c Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Sat, 12 Dec 2015 01:09:52 +0400 Subject: [PATCH] Remove public. --- src/main/kotlin/com/beust/kobalt/maven/SimpleDep.kt | 2 +- src/main/kotlin/com/beust/kobalt/maven/UnversionedDep.kt | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/kotlin/com/beust/kobalt/maven/SimpleDep.kt b/src/main/kotlin/com/beust/kobalt/maven/SimpleDep.kt index 50e6120b..a041764d 100644 --- a/src/main/kotlin/com/beust/kobalt/maven/SimpleDep.kt +++ b/src/main/kotlin/com/beust/kobalt/maven/SimpleDep.kt @@ -2,7 +2,7 @@ package com.beust.kobalt.maven import com.beust.kobalt.misc.Strings -open public class SimpleDep(open val mavenId: MavenId) : UnversionedDep(mavenId.groupId, mavenId.artifactId) { +open class SimpleDep(open val mavenId: MavenId) : UnversionedDep(mavenId.groupId, mavenId.artifactId) { companion object { fun create(id: String) = MavenId.create(id).let { SimpleDep(it) diff --git a/src/main/kotlin/com/beust/kobalt/maven/UnversionedDep.kt b/src/main/kotlin/com/beust/kobalt/maven/UnversionedDep.kt index 2e3f0c79..340916f2 100644 --- a/src/main/kotlin/com/beust/kobalt/maven/UnversionedDep.kt +++ b/src/main/kotlin/com/beust/kobalt/maven/UnversionedDep.kt @@ -7,8 +7,8 @@ import java.io.File * Represents a dependency that doesn't have a version: "org.testng:testng:". Such dependencies * eventually resolve to the latest version of the artifact. */ -open public class UnversionedDep(open val groupId: String, open val artifactId: String) { - open public fun toMetadataXmlPath(fileSystem: Boolean = true, isLocal: Boolean): String { +open class UnversionedDep(open val groupId: String, open val artifactId: String) { + open fun toMetadataXmlPath(fileSystem: Boolean = true, isLocal: Boolean): String { return toDirectory("", fileSystem) + if (isLocal) "maven-metadata-local.xml" else "maven-metadata.xml" } @@ -17,7 +17,7 @@ open public class UnversionedDep(open val groupId: String, open val artifactId: * dependent path separator, otherwise, use '/' (used to create URL's). The returned * string always ends with the path separator. */ - public fun toDirectory(v: String, fileSystem: Boolean = true): String { + fun toDirectory(v: String, fileSystem: Boolean = true): String { val sep = if (fileSystem) File.separator else "/" val l = listOf(groupId.replace(".", sep), artifactId, v) val result = Strings.Companion.join(sep, l)