library/e2ee-p2p: document public API for detekt
- Commit
4dceee4f42af05fddebb63b84cd8a2c7e1fcae33- Author
- Vayun Mathur <[email protected]>
- When
- 2026-11-17 14:42 UTC (19 days ago)
- Parents
e442948
Add concise KDoc to every public class, object, interface and enum (including nested types) that detekt's UndocumentedPublicClass rule flagged in this module. Docs only: no behaviour, visibility or config changes. Verified: ./gradlew :library:e2ee-p2p:detekt reports 0 UndocumentedPublicClass findings (pre-existing error-severity findings in other rules, where present, are untouched), and the module unit tests pass.
Diff
library/e2ee-p2p/src/main/java/com/vayunmathur/e2ee/PqcIdentity.kt
diff --git a/library/e2ee-p2p/src/main/java/com/vayunmathur/e2ee/PqcIdentity.kt b/library/e2ee-p2p/src/main/java/com/vayunmathur/e2ee/PqcIdentity.ktindex 7545c9f9e6..ac45dddde5 100644--- a/library/e2ee-p2p/src/main/java/com/vayunmathur/e2ee/PqcIdentity.kt+++ b/library/e2ee-p2p/src/main/java/com/vayunmathur/e2ee/PqcIdentity.kt@@ -17,6 +17,7 @@ class PqcIdentity internal constructor( /** Signs data with this identity's ML-DSA key. */ fun sign(data: ByteArray): ByteArray = Pqc.signWith(dsaPrivate, data) + /** Loading and generation entry points for [PqcIdentity]. */ companion object { /** * Loads the persisted PQC keypairs, generating + storing them on first use.