mirror of
https://github.com/corda/corda.git
synced 2025-01-31 08:25:50 +00:00
core: Remove warnings
This commit is contained in:
parent
a2e6e78b16
commit
878a683823
@ -212,12 +212,12 @@ inline fun <T> Kryo.useClassLoader(cl: ClassLoader, body: () -> T) : T {
|
||||
}
|
||||
}
|
||||
|
||||
inline fun Output.writeBytesWithLength(byteArray: ByteArray) {
|
||||
fun Output.writeBytesWithLength(byteArray: ByteArray) {
|
||||
this.writeInt(byteArray.size, true)
|
||||
this.writeBytes(byteArray)
|
||||
}
|
||||
|
||||
inline fun Input.readBytesWithLength(): ByteArray {
|
||||
fun Input.readBytesWithLength(): ByteArray {
|
||||
val size = this.readInt(true)
|
||||
return this.readBytes(size)
|
||||
}
|
||||
|
@ -3,7 +3,6 @@ package com.r3corda.core.serialization
|
||||
import com.google.common.primitives.Ints
|
||||
import com.r3corda.core.crypto.generateKeyPair
|
||||
import com.r3corda.core.crypto.signWithECDSA
|
||||
import com.r3corda.core.crypto.verifyWithECDSA
|
||||
import org.assertj.core.api.Assertions.assertThat
|
||||
import org.assertj.core.api.Assertions.assertThatThrownBy
|
||||
import org.junit.Test
|
||||
|
Loading…
x
Reference in New Issue
Block a user