diff --git a/libraries/tools/kdoc/src/main/kotlin/org/jetbrains/kotlin/doc/KDocConfig.kt b/libraries/tools/kdoc/src/main/kotlin/org/jetbrains/kotlin/doc/KDocConfig.kt index a86550e3fbe..6c0bcc0075d 100644 --- a/libraries/tools/kdoc/src/main/kotlin/org/jetbrains/kotlin/doc/KDocConfig.kt +++ b/libraries/tools/kdoc/src/main/kotlin/org/jetbrains/kotlin/doc/KDocConfig.kt @@ -27,8 +27,7 @@ class KDocConfig() { * Returns a map of the package prefix to the HTML URL for the root of the apidoc using javadoc/kdoc style * directory layouts so that this API doc report can link to external packages */ - private val mutablePackagePrefixToUrls: MutableMap = TreeMap(LongestFirstStringComparator()) - public val packagePrefixToUrls: Map = mutablePackagePrefixToUrls + public val packagePrefixToUrls: MutableMap = TreeMap(LongestFirstStringComparator()) /** * Returns a Set of the package name prefixes to ignore from the KDoc report @@ -55,12 +54,12 @@ class KDocConfig() { * A map of package name to html or markdown files used to describe the package. If none is * speciied we will look for a package.html or package.md file in the source tree */ - public var packageDescriptionFiles: Map = HashMap() + public var packageDescriptionFiles: MutableMap = HashMap() /** * A map of package name to summary text used in the package overviews */ - public var packageSummaryText: Map = HashMap() + public var packageSummaryText: MutableMap = HashMap() /** * Returns true if protected functions and properties should be documented @@ -84,7 +83,7 @@ class KDocConfig() { */ fun addPackageLink(url: String, vararg packagePrefixes: String): Unit { for (p in packagePrefixes) { - mutablePackagePrefixToUrls.put(p, url) + packagePrefixToUrls.put(p, url) } }