Skip to content

Commit f96e24b

Browse files
committed
suppress the linter issue
1 parent 9ef7ef6 commit f96e24b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/src/main/java/xmtpv3.kt

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ package uniffi.xmtpv3;
1717
// compile the Rust component. The easiest way to ensure this is to bundle the Kotlin
1818
// helpers directly inline like we're doing here.
1919

20+
import android.annotation.SuppressLint
2021
import com.sun.jna.Library
2122
import com.sun.jna.IntegerType
2223
import com.sun.jna.Native
@@ -2262,6 +2263,7 @@ private fun UniffiCleaner.Companion.create(): UniffiCleaner =
22622263
}
22632264

22642265
private class JavaLangRefCleaner : UniffiCleaner {
2266+
@SuppressLint("NewApi")
22652267
val cleaner = java.lang.ref.Cleaner.create()
22662268

22672269
override fun register(value: Any, cleanUpTask: Runnable): UniffiCleaner.Cleanable =

0 commit comments

Comments
 (0)