xref: /aosp_15_r20/external/leakcanary2/shark/src/main/java/shark/internal/ByteStringCompat.java (revision d9e8da70d8c9df9a41d7848ae506fb3115cae6e6)
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