From 760943f0e170c6bd48337575176b41b4abbfba8a Mon Sep 17 00:00:00 2001 From: Dmitriy Novozhilov Date: Tue, 21 Sep 2021 15:28:28 +0300 Subject: [PATCH] [FE] Make setter of CallableId.classId private Fact that `classId` is `var` is detail of implementation, so there is no reason to expose its setter to public API --- core/compiler.common/src/org/jetbrains/kotlin/name/CallableId.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/core/compiler.common/src/org/jetbrains/kotlin/name/CallableId.kt b/core/compiler.common/src/org/jetbrains/kotlin/name/CallableId.kt index cede40ec843..56ca4c2a497 100644 --- a/core/compiler.common/src/org/jetbrains/kotlin/name/CallableId.kt +++ b/core/compiler.common/src/org/jetbrains/kotlin/name/CallableId.kt @@ -33,6 +33,7 @@ data class CallableId( } return field } + private set constructor(classId: ClassId, callableName: Name) : this(classId.packageFqName, classId.relativeClassName, callableName) { this.classId = classId