From 075e0bd6738aff881d298ebcbdf7da407722d8c9 Mon Sep 17 00:00:00 2001 From: Rick Parker Date: Fri, 29 Sep 2017 11:12:32 +0100 Subject: [PATCH] Add @suppress (#1725) --- .../kotlin/net/corda/core/internal/InternalUtils.kt | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/core/src/main/kotlin/net/corda/core/internal/InternalUtils.kt b/core/src/main/kotlin/net/corda/core/internal/InternalUtils.kt index 3b5c8752ea..bfaf0de7ef 100644 --- a/core/src/main/kotlin/net/corda/core/internal/InternalUtils.kt +++ b/core/src/main/kotlin/net/corda/core/internal/InternalUtils.kt @@ -1,13 +1,10 @@ package net.corda.core.internal -import net.corda.core.contracts.AttachmentResolutionException -import net.corda.core.contracts.TransactionResolutionException import net.corda.core.crypto.SecureHash import net.corda.core.crypto.sha256 import net.corda.core.node.ServiceHub import net.corda.core.node.ServicesForResolution import net.corda.core.serialization.SerializationContext -import net.corda.core.transactions.MissingContractAttachments import net.corda.core.transactions.TransactionBuilder import net.corda.core.transactions.WireTransaction import org.bouncycastle.cert.X509CertificateHolder @@ -284,10 +281,16 @@ fun uncheckedCast(obj: T) = obj as U fun Iterable>.toMultiMap(): Map> = this.groupBy({ it.first }) { it.second } -// Provide access to internal method for AttachmentClassLoaderTests +/** + * Provide access to internal method for AttachmentClassLoaderTests + * @suppress + */ fun TransactionBuilder.toWireTransaction(services: ServicesForResolution, serializationContext: SerializationContext): WireTransaction { return toWireTransactionWithContext(services, serializationContext) } -// Provide access to internal method for AttachmentClassLoaderTests +/** + * Provide access to internal method for AttachmentClassLoaderTests + * @suppress + */ fun TransactionBuilder.toLedgerTransaction(services: ServiceHub, serializationContext: SerializationContext) = toLedgerTransactionWithContext(services, serializationContext)