Minor: suppress deprecation warning in CordaRPCOpsImpl

This commit is contained in:
Mike Hearn 2017-02-03 13:38:01 +01:00 committed by Chris Rankin
parent 8627a7dbbe
commit 12de4f46b1

View File

@ -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) {