From c9e31ecd4b5b8ab8eb6039cfe34be8892f0651d5 Mon Sep 17 00:00:00 2001 From: Mike Hearn Date: Wed, 9 May 2018 15:21:46 +0200 Subject: [PATCH] Minor: fix a typo in a warning suppression and operator ordering. --- core/src/main/kotlin/net/corda/core/utilities/ByteArrays.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/kotlin/net/corda/core/utilities/ByteArrays.kt b/core/src/main/kotlin/net/corda/core/utilities/ByteArrays.kt index 75c9f02680..5eb9e54520 100644 --- a/core/src/main/kotlin/net/corda/core/utilities/ByteArrays.kt +++ b/core/src/main/kotlin/net/corda/core/utilities/ByteArrays.kt @@ -35,7 +35,7 @@ sealed class ByteSequence(private val _bytes: ByteArray, val offset: Int, val si * @param offset The offset within this sequence to start the new sequence. Note: not the offset within the backing array. * @param size The size of the intended sub sequence. */ - @Suppress("MemberVisibilityCanPrivate") + @Suppress("MemberVisibilityCanBePrivate") fun subSequence(offset: Int, size: Int): ByteSequence { require(offset >= 0) require(offset + size <= this.size) @@ -164,7 +164,7 @@ open class OpaqueBytes(bytes: ByteArray) : ByteSequence(bytes, 0, bytes.size) { * compiler is ever able to optimise away the clone. In which case we may need to revisit * this later. */ - override final val bytes: ByteArray = bytes + final override val bytes: ByteArray = bytes get() = field.clone() }