Cleanup: replace DATA_CLASS_COPY_VISIBILITY_WILL_BE_CHANGED_WARNING suppress with -Xconsistent-data-class-copy-visibility No.2
The bootstrap has happened. Now the compiler flag is available.
I accidentally missed this todo in the first commit
diff --git a/core/deserialization.common.jvm/build.gradle.kts b/core/deserialization.common.jvm/build.gradle.kts
index b028bc4..0fc1a12 100644
--- a/core/deserialization.common.jvm/build.gradle.kts
+++ b/core/deserialization.common.jvm/build.gradle.kts
@@ -1,3 +1,5 @@
+import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
+
plugins {
kotlin("jvm")
id("jps-compatible")
@@ -11,6 +13,10 @@
implementation(project(":core:compiler.common.jvm"))
}
+tasks.withType<KotlinJvmCompile>().configureEach {
+ compilerOptions.freeCompilerArgs.add("-Xconsistent-data-class-copy-visibility")
+}
+
sourceSets {
"main" { projectDefault() }
"test" {}
diff --git a/core/deserialization.common.jvm/src/org/jetbrains/kotlin/load/kotlin/MemberSignature.kt b/core/deserialization.common.jvm/src/org/jetbrains/kotlin/load/kotlin/MemberSignature.kt
index a021809..056f2a7 100644
--- a/core/deserialization.common.jvm/src/org/jetbrains/kotlin/load/kotlin/MemberSignature.kt
+++ b/core/deserialization.common.jvm/src/org/jetbrains/kotlin/load/kotlin/MemberSignature.kt
@@ -11,8 +11,7 @@
// The purpose of this class is to hold a unique signature of either a method or a field, so that annotations on a member can be put
// into a map indexed by these signatures
-// todo: replace suppress with @ConsistentCopyVisibility annotation after bootstrap
-@Suppress("DataClassPrivateConstructor", "DATA_CLASS_COPY_VISIBILITY_WILL_BE_CHANGED_WARNING")
+@Suppress("DataClassPrivateConstructor")
data class MemberSignature private constructor(val signature: String) {
companion object {
@JvmStatic