From 12de4f46b12f9fe50671535c8ab858d487767a29 Mon Sep 17 00:00:00 2001 From: Mike Hearn Date: Fri, 3 Feb 2017 13:38:01 +0100 Subject: [PATCH] Minor: suppress deprecation warning in CordaRPCOpsImpl --- node/src/main/kotlin/net/corda/node/internal/CordaRPCOpsImpl.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/node/src/main/kotlin/net/corda/node/internal/CordaRPCOpsImpl.kt b/node/src/main/kotlin/net/corda/node/internal/CordaRPCOpsImpl.kt index 6bf007ddf3..773b2c9965 100644 --- a/node/src/main/kotlin/net/corda/node/internal/CordaRPCOpsImpl.kt +++ b/node/src/main/kotlin/net/corda/node/internal/CordaRPCOpsImpl.kt @@ -103,6 +103,7 @@ class CordaRPCOpsImpl( override fun attachmentExists(id: SecureHash) = services.storageService.attachments.openAttachment(id) != null override fun uploadAttachment(jar: InputStream) = services.storageService.attachments.importAttachment(jar) override fun currentNodeTime(): Instant = Instant.now(services.clock) + @Suppress("OverridingDeprecatedMember", "DEPRECATION") override fun uploadFile(dataType: String, name: String?, file: InputStream): String { val acceptor = services.storageService.uploaders.firstOrNull { it.accepts(dataType) } return databaseTransaction(database) {