mirror of
https://github.com/corda/corda.git
synced 2025-04-07 19:34:41 +00:00
Minor: move @Suppress("UNCHECKED_CAST") to file level to work around KT-10210
This commit is contained in:
parent
472d57e262
commit
88793644c8
@ -1,4 +1,4 @@
|
||||
@file:Suppress("UNUSED_PARAMETER")
|
||||
@file:Suppress("UNUSED_PARAMETER", "UNCHECKED_CAST")
|
||||
|
||||
package core.testutils
|
||||
|
||||
@ -193,7 +193,6 @@ class TransactionGroupForTest<T : ContractState>(private val stateType: Class<T>
|
||||
if (labelledState.label != null) {
|
||||
labelToRefs[labelledState.label] = ContractStateRef(ltx.hash, index)
|
||||
if (stateType.isInstance(labelledState.state)) {
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
labelToOutputs[labelledState.label] = labelledState.state as T
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user