mirror of
https://github.com/corda/corda.git
synced 2024-12-18 20:47:57 +00:00
Minor: fix a typo in a warning suppression and operator ordering.
This commit is contained in:
parent
5e759f5025
commit
c9e31ecd4b
@ -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()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user