Minor: move @Suppress("UNCHECKED_CAST") to file level to work around KT-10210

This commit is contained in:
Mike Hearn 2015-11-27 14:04:38 +01:00
parent 472d57e262
commit 88793644c8

View File

@ -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
}
}