Replaced varargs with a list

This commit is contained in:
Clinton Alexander 2016-08-10 11:44:41 +01:00
parent 9fb8061ba4
commit 16182331f9

View File

@ -102,7 +102,7 @@ object AutoOfferProtocol {
val notary = serviceHub.networkMapCache.notaryNodes.first().identity
// need to pick which ever party is not us
val otherParty = notUs(*dealToBeOffered.parties).single()
val otherParty = notUs(dealToBeOffered.parties).single()
progressTracker.currentStep = ANNOUNCING
send(otherParty, 0, AutoOfferMessage(serviceHub.storageService.myLegalIdentity, notary, ourSessionID, dealToBeOffered))
progressTracker.currentStep = DEALING
@ -110,7 +110,7 @@ object AutoOfferProtocol {
return stx
}
private fun notUs(vararg parties: Party): List<Party> {
private fun notUs(parties: List<Party>): List<Party> {
val notUsParties: MutableList<Party> = arrayListOf()
for (party in parties) {
if (serviceHub.storageService.myLegalIdentity != party) {