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:
+1
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user