mirror of
https://github.com/corda/corda.git
synced 2024-12-21 05:53:23 +00:00
Intellij bug workaround (#434)
* Workaround for `"bound callable references" is only available since language version 1.1` when using kotlin 1.1.1 plugin.
This commit is contained in:
parent
c73a2e6034
commit
dc06d37369
@ -72,6 +72,8 @@ class DefaultSerializableSerializer : Serializer<DefaultSerializable>() {
|
|||||||
class CordaClassResolverTests {
|
class CordaClassResolverTests {
|
||||||
@Test
|
@Test
|
||||||
fun `Annotation on enum works for specialised entries`() {
|
fun `Annotation on enum works for specialised entries`() {
|
||||||
|
// TODO: Remove this suppress when we upgrade to kotlin 1.1 or when JetBrain fixes the bug.
|
||||||
|
@Suppress("UNSUPPORTED_FEATURE")
|
||||||
CordaClassResolver(EmptyWhitelist).getRegistration(Foo.Bar::class.java)
|
CordaClassResolver(EmptyWhitelist).getRegistration(Foo.Bar::class.java)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -97,6 +97,8 @@ class InterestRateSwapAPI(val rpc: CordaRPCOps) {
|
|||||||
val priorDemoDate = fetchDemoDate()
|
val priorDemoDate = fetchDemoDate()
|
||||||
// Can only move date forwards
|
// Can only move date forwards
|
||||||
if (newDemoDate.isAfter(priorDemoDate)) {
|
if (newDemoDate.isAfter(priorDemoDate)) {
|
||||||
|
// TODO: Remove this suppress when we upgrade to kotlin 1.1 or when JetBrain fixes the bug.
|
||||||
|
@Suppress("UNSUPPORTED_FEATURE")
|
||||||
rpc.startFlow(UpdateBusinessDayFlow::Broadcast, newDemoDate).returnValue.getOrThrow()
|
rpc.startFlow(UpdateBusinessDayFlow::Broadcast, newDemoDate).returnValue.getOrThrow()
|
||||||
return Response.ok().build()
|
return Response.ok().build()
|
||||||
}
|
}
|
||||||
|
@ -76,6 +76,8 @@ private class NotaryDemoClientApi(val rpc: CordaRPCOps) {
|
|||||||
* @return a list of encoded signer public keys - one for every transaction
|
* @return a list of encoded signer public keys - one for every transaction
|
||||||
*/
|
*/
|
||||||
private fun notariseTransactions(transactions: List<SignedTransaction>): List<String> {
|
private fun notariseTransactions(transactions: List<SignedTransaction>): List<String> {
|
||||||
|
// TODO: Remove this suppress when we upgrade to kotlin 1.1 or when JetBrain fixes the bug.
|
||||||
|
@Suppress("UNSUPPORTED_FEATURE")
|
||||||
val signatureFutures = transactions.map { rpc.startFlow(NotaryFlow::Client, it).returnValue }
|
val signatureFutures = transactions.map { rpc.startFlow(NotaryFlow::Client, it).returnValue }
|
||||||
return Futures.allAsList(signatureFutures).getOrThrow().map { it.map { it.by.toStringShort() }.joinToString() }
|
return Futures.allAsList(signatureFutures).getOrThrow().map { it.map { it.by.toStringShort() }.joinToString() }
|
||||||
}
|
}
|
||||||
|
@ -269,6 +269,8 @@ class PortfolioApi(val rpc: CordaRPCOps) {
|
|||||||
return withParty(partyName) { otherParty ->
|
return withParty(partyName) { otherParty ->
|
||||||
val existingSwap = getPortfolioWith(otherParty)
|
val existingSwap = getPortfolioWith(otherParty)
|
||||||
val flowHandle = if (existingSwap == null) {
|
val flowHandle = if (existingSwap == null) {
|
||||||
|
// TODO: Remove this suppress when we upgrade to kotlin 1.1 or when JetBrain fixes the bug.
|
||||||
|
@Suppress("UNSUPPORTED_FEATURE")
|
||||||
rpc.startFlow(SimmFlow::Requester, otherParty, params.valuationDate)
|
rpc.startFlow(SimmFlow::Requester, otherParty, params.valuationDate)
|
||||||
} else {
|
} else {
|
||||||
rpc.startFlow(SimmRevaluation::Initiator, getPortfolioStateAndRefWith(otherParty).ref, params.valuationDate)
|
rpc.startFlow(SimmRevaluation::Initiator, getPortfolioStateAndRefWith(otherParty).ref, params.valuationDate)
|
||||||
|
Loading…
Reference in New Issue
Block a user