Drop 'index' JVM binary format extension
Compute the JVM parameer index manually instead
Original commit: 39c10867a0
This commit is contained in:
@@ -430,11 +430,6 @@ open class ProtoCompareGenerated(public val oldNameResolver: NameResolver, publi
|
|||||||
if (old.varargElementTypeId != new.varargElementTypeId) return false
|
if (old.varargElementTypeId != new.varargElementTypeId) return false
|
||||||
}
|
}
|
||||||
|
|
||||||
if (old.hasExtension(JvmProtoBuf.index) != new.hasExtension(JvmProtoBuf.index)) return false
|
|
||||||
if (old.hasExtension(JvmProtoBuf.index)) {
|
|
||||||
if (old.getExtension(JvmProtoBuf.index) != new.getExtension(JvmProtoBuf.index)) return false
|
|
||||||
}
|
|
||||||
|
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1123,10 +1118,6 @@ public fun ProtoBuf.ValueParameter.hashCode(stringIndexes: (Int) -> Int, fqNameI
|
|||||||
hashCode = 31 * hashCode + varargElementTypeId
|
hashCode = 31 * hashCode + varargElementTypeId
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hasExtension(JvmProtoBuf.index)) {
|
|
||||||
hashCode = 31 * hashCode + getExtension(JvmProtoBuf.index)
|
|
||||||
}
|
|
||||||
|
|
||||||
return hashCode
|
return hashCode
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user