From e991e53e237958a1ac778a99611f499023772116 Mon Sep 17 00:00:00 2001 From: Jake Wharton Date: Fri, 10 Jan 2025 00:11:07 -0500 Subject: [PATCH 1/3] Correct `MutableEntry` name --- .../src/jvmMain/kotlin/com/squareup/kotlinpoet/TypeName.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kotlinpoet/src/jvmMain/kotlin/com/squareup/kotlinpoet/TypeName.kt b/kotlinpoet/src/jvmMain/kotlin/com/squareup/kotlinpoet/TypeName.kt index 60dea8bf6c..abeb196086 100644 --- a/kotlinpoet/src/jvmMain/kotlin/com/squareup/kotlinpoet/TypeName.kt +++ b/kotlinpoet/src/jvmMain/kotlin/com/squareup/kotlinpoet/TypeName.kt @@ -292,7 +292,7 @@ public sealed class TypeName constructor( @JvmField public val MUTABLE_MAP: ClassName = ClassName("kotlin.collections", "MutableMap") -@JvmField public val MUTABLE_MAP_ENTRY: ClassName = MUTABLE_MAP.nestedClass("Entry") +@JvmField public val MUTABLE_MAP_ENTRY: ClassName = MUTABLE_MAP.nestedClass("MutableEntry") @JvmField public val BOOLEAN_ARRAY: ClassName = ClassName("kotlin", "BooleanArray") From feb73437ef8cdd43300c7999decdfe12a2fa77f3 Mon Sep 17 00:00:00 2001 From: Jake Wharton Date: Fri, 10 Jan 2025 00:12:10 -0500 Subject: [PATCH 2/3] Update changelog.md --- docs/changelog.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/changelog.md b/docs/changelog.md index 85804b6429..f8c341d495 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -4,6 +4,8 @@ Change Log ## Unreleased * Fix: Support delegates on anonymous classes. (#2034) +* Fix: `TypeName.MUTABLE_MAP_ENTRY` now correctly uses the `MutableEntry` nested class name. + ## Version 2.0.0 From 095fce37efbcc74b94a1838cf8af5c2aa2adf7aa Mon Sep 17 00:00:00 2001 From: Jake Wharton Date: Fri, 10 Jan 2025 00:12:49 -0500 Subject: [PATCH 3/3] Update changelog.md --- docs/changelog.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/changelog.md b/docs/changelog.md index f8c341d495..ec2052790a 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -4,7 +4,7 @@ Change Log ## Unreleased * Fix: Support delegates on anonymous classes. (#2034) -* Fix: `TypeName.MUTABLE_MAP_ENTRY` now correctly uses the `MutableEntry` nested class name. +* Fix: `TypeName.MUTABLE_MAP_ENTRY` now correctly uses the `MutableEntry` nested class name. (#2061) ## Version 2.0.0