fix: suppress deprecation and unchecked cast warnings in Quartz internal code

Deprecated APIs in Quartz are kept for library consumers but internal usages
now carry @Suppress annotations so the module builds warning-free. Also
replaces redundant .toInt() on hex Int literals in ChaCha20Core and migrates
deprecated java.net.URL to URI.resolve() in ServerInfoParser.

The spotless license header delimiter is updated to recognize @file: annotations.

https://claude.ai/code/session_01EwS56YAGGnnac5EuwhaUSs
This commit is contained in:
Claude
2026-03-28 16:39:51 +00:00
parent 0054c01921
commit 610fcd7e0c
14 changed files with 23 additions and 7 deletions
@@ -83,6 +83,7 @@ class NostrSignerExternal(
val result = backgroundQuery.sign(unsignedEvent) ?: foregroundQuery.sign(unsignedEvent)
if (result is SignerResult.RequestAddressed.Successful<SignResult>) {
@Suppress("UNCHECKED_CAST")
(result.result.event as? T)?.let {
return it
}