[Gradle] Convert KotlinTargetHierarchy.ModuleName to regular class (instead of data)
^KT-56654 Verification Pending
This commit is contained in:
committed by
Space Team
parent
b5d188d44e
commit
a7a689841f
@@ -1060,9 +1060,6 @@ public abstract interface class org/jetbrains/kotlin/gradle/plugin/KotlinTargetH
|
||||
public final class org/jetbrains/kotlin/gradle/plugin/KotlinTargetHierarchy$ModuleName {
|
||||
public static final field Companion Lorg/jetbrains/kotlin/gradle/plugin/KotlinTargetHierarchy$ModuleName$Companion;
|
||||
public fun <init> (Ljava/lang/String;)V
|
||||
public final fun component1 ()Ljava/lang/String;
|
||||
public final fun copy (Ljava/lang/String;)Lorg/jetbrains/kotlin/gradle/plugin/KotlinTargetHierarchy$ModuleName;
|
||||
public static synthetic fun copy$default (Lorg/jetbrains/kotlin/gradle/plugin/KotlinTargetHierarchy$ModuleName;Ljava/lang/String;ILjava/lang/Object;)Lorg/jetbrains/kotlin/gradle/plugin/KotlinTargetHierarchy$ModuleName;
|
||||
public fun equals (Ljava/lang/Object;)Z
|
||||
public final fun getName ()Ljava/lang/String;
|
||||
public fun hashCode ()I
|
||||
|
||||
+10
-1
@@ -7,9 +7,18 @@ package org.jetbrains.kotlin.gradle.plugin
|
||||
|
||||
interface KotlinTargetHierarchy {
|
||||
|
||||
data class ModuleName(val name: String) {
|
||||
class ModuleName(val name: String) {
|
||||
override fun toString(): String = name
|
||||
|
||||
override fun equals(other: Any?): Boolean {
|
||||
if (other !is ModuleName) return false
|
||||
return this.name == other.name
|
||||
}
|
||||
|
||||
override fun hashCode(): Int {
|
||||
return name.hashCode()
|
||||
}
|
||||
|
||||
companion object {
|
||||
val main = ModuleName("main")
|
||||
val test = ModuleName("test")
|
||||
|
||||
Reference in New Issue
Block a user