diff --git a/libraries/stdlib/src/generated/_Arrays.kt b/libraries/stdlib/src/generated/_Arrays.kt index 2e0f295d109..3134e3433ed 100644 --- a/libraries/stdlib/src/generated/_Arrays.kt +++ b/libraries/stdlib/src/generated/_Arrays.kt @@ -8020,70 +8020,70 @@ public fun CharArray.toSet(): Set { } /** - * Returns a [SortedSet] of all elements. + * Returns a [SortedSet][java.util.SortedSet] of all elements. */ public fun > Array.toSortedSet(): java.util.SortedSet { return toCollection(java.util.TreeSet()) } /** - * Returns a [SortedSet] of all elements. + * Returns a [SortedSet][java.util.SortedSet] of all elements. */ public fun ByteArray.toSortedSet(): java.util.SortedSet { return toCollection(java.util.TreeSet()) } /** - * Returns a [SortedSet] of all elements. + * Returns a [SortedSet][java.util.SortedSet] of all elements. */ public fun ShortArray.toSortedSet(): java.util.SortedSet { return toCollection(java.util.TreeSet()) } /** - * Returns a [SortedSet] of all elements. + * Returns a [SortedSet][java.util.SortedSet] of all elements. */ public fun IntArray.toSortedSet(): java.util.SortedSet { return toCollection(java.util.TreeSet()) } /** - * Returns a [SortedSet] of all elements. + * Returns a [SortedSet][java.util.SortedSet] of all elements. */ public fun LongArray.toSortedSet(): java.util.SortedSet { return toCollection(java.util.TreeSet()) } /** - * Returns a [SortedSet] of all elements. + * Returns a [SortedSet][java.util.SortedSet] of all elements. */ public fun FloatArray.toSortedSet(): java.util.SortedSet { return toCollection(java.util.TreeSet()) } /** - * Returns a [SortedSet] of all elements. + * Returns a [SortedSet][java.util.SortedSet] of all elements. */ public fun DoubleArray.toSortedSet(): java.util.SortedSet { return toCollection(java.util.TreeSet()) } /** - * Returns a [SortedSet] of all elements. + * Returns a [SortedSet][java.util.SortedSet] of all elements. */ public fun BooleanArray.toSortedSet(): java.util.SortedSet { return toCollection(java.util.TreeSet()) } /** - * Returns a [SortedSet] of all elements. + * Returns a [SortedSet][java.util.SortedSet] of all elements. */ public fun CharArray.toSortedSet(): java.util.SortedSet { return toCollection(java.util.TreeSet()) } /** - * Returns a [SortedSet] of all elements. + * Returns a [SortedSet][java.util.SortedSet] of all elements. * * Elements in the set returned are sorted according to the given [comparator]. */ diff --git a/libraries/stdlib/src/generated/_Collections.kt b/libraries/stdlib/src/generated/_Collections.kt index 9b1d05f8cac..5d3437d11a8 100644 --- a/libraries/stdlib/src/generated/_Collections.kt +++ b/libraries/stdlib/src/generated/_Collections.kt @@ -1115,14 +1115,14 @@ public fun Iterable.toSet(): Set { } /** - * Returns a [SortedSet] of all elements. + * Returns a [SortedSet][java.util.SortedSet] of all elements. */ public fun > Iterable.toSortedSet(): java.util.SortedSet { return toCollection(java.util.TreeSet()) } /** - * Returns a [SortedSet] of all elements. + * Returns a [SortedSet][java.util.SortedSet] of all elements. * * Elements in the set returned are sorted according to the given [comparator]. */ diff --git a/libraries/stdlib/src/generated/_Sequences.kt b/libraries/stdlib/src/generated/_Sequences.kt index 915ec148d96..a7287a5faa6 100644 --- a/libraries/stdlib/src/generated/_Sequences.kt +++ b/libraries/stdlib/src/generated/_Sequences.kt @@ -696,7 +696,7 @@ public fun Sequence.toSet(): Set { } /** - * Returns a [SortedSet] of all elements. + * Returns a [SortedSet][java.util.SortedSet] of all elements. * * The operation is _terminal_. */ @@ -705,7 +705,7 @@ public fun > Sequence.toSortedSet(): java.util.SortedSet } /** - * Returns a [SortedSet] of all elements. + * Returns a [SortedSet][java.util.SortedSet] of all elements. * * Elements in the set returned are sorted according to the given [comparator]. * diff --git a/libraries/stdlib/src/generated/_Strings.kt b/libraries/stdlib/src/generated/_Strings.kt index ded8f024ae5..d560c554c6a 100644 --- a/libraries/stdlib/src/generated/_Strings.kt +++ b/libraries/stdlib/src/generated/_Strings.kt @@ -626,7 +626,7 @@ public fun CharSequence.toSet(): Set { } /** - * Returns a [SortedSet] of all characters. + * Returns a [SortedSet][java.util.SortedSet] of all characters. */ public fun CharSequence.toSortedSet(): java.util.SortedSet { return toCollection(java.util.TreeSet()) diff --git a/libraries/stdlib/src/kotlin/collections/Sets.kt b/libraries/stdlib/src/kotlin/collections/Sets.kt index 5cde8060833..1825d213b3c 100644 --- a/libraries/stdlib/src/kotlin/collections/Sets.kt +++ b/libraries/stdlib/src/kotlin/collections/Sets.kt @@ -88,13 +88,13 @@ public fun setOf(element: T): Set = java.util.Collections.singleton(eleme /** - * Returns a new [SortedSet] with the given elements. + * Returns a new [java.util.SortedSet] with the given elements. */ @JvmVersion public fun sortedSetOf(vararg elements: T): java.util.TreeSet = elements.toCollection(java.util.TreeSet()) /** - * Returns a new [SortedSet] with the given [comparator] and elements. + * Returns a new [java.util.SortedSet] with the given [comparator] and elements. */ @JvmVersion public fun sortedSetOf(comparator: Comparator, vararg elements: T): java.util.TreeSet = elements.toCollection(java.util.TreeSet(comparator)) diff --git a/libraries/tools/kotlin-stdlib-gen/src/templates/Snapshots.kt b/libraries/tools/kotlin-stdlib-gen/src/templates/Snapshots.kt index 0c930379fb0..bf7dbaa6ceb 100644 --- a/libraries/tools/kotlin-stdlib-gen/src/templates/Snapshots.kt +++ b/libraries/tools/kotlin-stdlib-gen/src/templates/Snapshots.kt @@ -100,7 +100,7 @@ object Snapshots : TemplateGroupBase() { platforms(Platform.JVM) } builder { typeParam("T: Comparable") - doc { "Returns a [SortedSet] of all ${f.element.pluralize()}." } + doc { "Returns a [SortedSet][java.util.SortedSet] of all ${f.element.pluralize()}." } returns("java.util.SortedSet") body { "return toCollection(java.util.TreeSet())" } } @@ -111,7 +111,7 @@ object Snapshots : TemplateGroupBase() { } builder { doc { """ - Returns a [SortedSet] of all ${f.element.pluralize()}. + Returns a [SortedSet][java.util.SortedSet] of all ${f.element.pluralize()}. Elements in the set returned are sorted according to the given [comparator]. """