1 package shark.internal; 2 3 import okio.ByteString; 4 5 class ByteStringCompat { 6 7 /** 8 * This is deprecated (error) to invoke from Kotlin but invoking the Kotlin extension function 9 * leads to improper bytecode that goes through the companion class. 10 */ encodeUtf8(String string)11 static ByteString encodeUtf8(String string) { 12 return ByteString.encodeUtf8(string); 13 } 14 } 15