diff --git a/java/kotlin/src/test/kotlin/com/google/protobuf/ByteStringsTest.kt b/java/kotlin/src/test/kotlin/com/google/protobuf/ByteStringsTest.kt index d9c64c64b3..1e0b4d8cf9 100644 --- a/java/kotlin/src/test/kotlin/com/google/protobuf/ByteStringsTest.kt +++ b/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