`toBytes()` is deprecated, use `code` property instead

pull/18236/head
Zoey Greer 3 months ago
parent 9c835afdce
commit bb2398c45d
  1. 4
      java/kotlin/src/test/kotlin/com/google/protobuf/ByteStringsTest.kt

@ -35,8 +35,8 @@ class ByteStringsTest {
@Test
fun byteAt() {
val str = "abc".toByteStringUtf8()
assertThat(str[0]).isEqualTo('a'.toByte())
assertThat(str[2]).isEqualTo('c'.toByte())
assertThat(str[0]).isEqualTo('a'.code)
assertThat(str[2]).isEqualTo('c'.code)
}
@Test

Loading…
Cancel
Save