Replaced array with list to fix comparisons.

This commit is contained in:
Clinton Alexander 2016-08-09 09:20:15 +01:00
parent 2f7e05ee00
commit 9fb8061ba4
2 changed files with 3 additions and 3 deletions

View File

@ -672,8 +672,8 @@ class InterestRateSwap() : ClauseVerifier() {
return (fixedLeg.fixedRatePayer.owningKey in ourKeys) || (floatingLeg.floatingRatePayer.owningKey in ourKeys)
}
override val parties: Array<Party>
get() = arrayOf(fixedLeg.fixedRatePayer, floatingLeg.floatingRatePayer)
override val parties: List<Party>
get() = listOf(fixedLeg.fixedRatePayer, floatingLeg.floatingRatePayer)
override fun nextScheduledActivity(thisStateRef: StateRef, protocolLogicRefFactory: ProtocolLogicRefFactory): ScheduledActivity? {
val nextFixingOf = nextFixingOf() ?: return null

View File

@ -230,7 +230,7 @@ interface DealState : LinearState {
val ref: String
/** Exposes the Parties involved in a generic way */
val parties: Array<Party>
val parties: List<Party>
// TODO: This works by editing the keys used by a Party which is invalid.
fun withPublicKey(before: Party, after: PublicKey): DealState