mirror of
https://github.com/corda/corda.git
synced 2025-01-20 03:36:29 +00:00
Minor: work around a type inference bug in Kotlin
This commit is contained in:
parent
cf4363dc2e
commit
c80b3b787c
@ -27,7 +27,7 @@ class ContractStateModel {
|
||||
private val cashStatesDiff: Observable<Diff<Cash.State>> = contractStatesDiff.map {
|
||||
Diff(it.added.filterCashStateAndRefs(), it.removed.filterCashStateAndRefs())
|
||||
}
|
||||
val cashStates: ObservableList<StateAndRef<Cash.State>> = cashStatesDiff.fold(FXCollections.observableArrayList()) { list, statesDiff ->
|
||||
val cashStates: ObservableList<StateAndRef<Cash.State>> = cashStatesDiff.fold(FXCollections.observableArrayList()) { list: MutableList<StateAndRef<Cash.State>>, statesDiff ->
|
||||
list.removeIf { it in statesDiff.removed }
|
||||
list.addAll(statesDiff.added)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user