From f7dd2c210b25a0cd271b0e8e4cb5f109c88e5797 Mon Sep 17 00:00:00 2001 From: davotoula Date: Wed, 1 Jul 2026 21:18:56 +0200 Subject: [PATCH] fix: escape raw NUL bytes to fix Sonar encoding warning Four Kotlin sources embedded literal NUL (0x00) bytes, used as string separators and as literal characters in KDoc comments. A NUL is valid UTF-8 (U+0000) so decoders accept it, but SonarScanner flags an embedded NUL in a text source as a file-encoding problem, and git tracked these files as binary. --- .../com/vitorpamplona/amethyst/Amethyst.kt | Bin 8135 -> 8140 bytes .../DataStoreNappletPermissionStore.kt | Bin 5075 -> 5085 bytes .../napplet/DataStoreNappletStorage.kt | Bin 3004 -> 3009 bytes .../quartz/nip34Git/git/GitObject.kt | Bin 6951 -> 6956 bytes 4 files changed, 0 insertions(+), 0 deletions(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/Amethyst.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/Amethyst.kt index e5531f56b81d0e0619f8915b008629c6905c5f55..f32cdf0517bb02f52c3ae9e7e1f8e5b912cef9e2 100644 GIT binary patch delta 19 ZcmX?Zf5v`;y(C*qsR0mdc93jm0{}=B21)<` delta 14 VcmX?Of82h9y(A;UW>?8}HUKJ01i1hJ diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/napplet/DataStoreNappletPermissionStore.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/napplet/DataStoreNappletPermissionStore.kt index cd7cc65d4fa2c2bb637da4497cedcddafee67f6e..90bdbf434c93b3711f45f543bf5427fb364e56e2 100644 GIT binary patch delta 36 kcmcbteph|NMs~KCQUf5^yop_mM*zZB;!*&DTCQ3y0NYIo=Kufz delta 26 gcmcbsep!9PMs`Mq&D+_9 delta 18 ZcmX>ozDIn+CT=bUmF(0?B~7kcE&x1*1#AES diff --git a/quartz/src/jvmAndroid/kotlin/com/vitorpamplona/quartz/nip34Git/git/GitObject.kt b/quartz/src/jvmAndroid/kotlin/com/vitorpamplona/quartz/nip34Git/git/GitObject.kt index e65b2ca487620aceb1100b78556b61b1d5e2b72d..f041043069a8eb531b0e56aa0823a595ed23c91d 100644 GIT binary patch delta 19 ZcmZ2(w#ID30WP+fQUf5^e2^