mirror of
https://github.com/corda/corda.git
synced 2024-12-23 23:02:29 +00:00
Add @suppress (#1725)
This commit is contained in:
parent
2774d6193a
commit
075e0bd673
@ -1,13 +1,10 @@
|
|||||||
package net.corda.core.internal
|
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.SecureHash
|
||||||
import net.corda.core.crypto.sha256
|
import net.corda.core.crypto.sha256
|
||||||
import net.corda.core.node.ServiceHub
|
import net.corda.core.node.ServiceHub
|
||||||
import net.corda.core.node.ServicesForResolution
|
import net.corda.core.node.ServicesForResolution
|
||||||
import net.corda.core.serialization.SerializationContext
|
import net.corda.core.serialization.SerializationContext
|
||||||
import net.corda.core.transactions.MissingContractAttachments
|
|
||||||
import net.corda.core.transactions.TransactionBuilder
|
import net.corda.core.transactions.TransactionBuilder
|
||||||
import net.corda.core.transactions.WireTransaction
|
import net.corda.core.transactions.WireTransaction
|
||||||
import org.bouncycastle.cert.X509CertificateHolder
|
import org.bouncycastle.cert.X509CertificateHolder
|
||||||
@ -284,10 +281,16 @@ fun <T, U : T> uncheckedCast(obj: T) = obj as U
|
|||||||
|
|
||||||
fun <K, V> Iterable<Pair<K, V>>.toMultiMap(): Map<K, List<V>> = this.groupBy({ it.first }) { it.second }
|
fun <K, V> Iterable<Pair<K, V>>.toMultiMap(): Map<K, List<V>> = 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 {
|
fun TransactionBuilder.toWireTransaction(services: ServicesForResolution, serializationContext: SerializationContext): WireTransaction {
|
||||||
return toWireTransactionWithContext(services, serializationContext)
|
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)
|
fun TransactionBuilder.toLedgerTransaction(services: ServiceHub, serializationContext: SerializationContext) = toLedgerTransactionWithContext(services, serializationContext)
|
||||||
|
Loading…
Reference in New Issue
Block a user