redacted-compiler-plugin-annotations / dev.zacsweers.redacted.annotations / Redacted

Redacted

@Target([AnnotationTarget.PROPERTY, AnnotationTarget.CLASS]) annotation class Redacted

An annotation to indicate that a particular property or class should be redacted in toString() implementations.

For properties, each individual property will be redacted. Example: User(name=Bob, phoneNumber=██)

For classes, the entire class will be redacted. Example: SensitiveData(██)

Constructors

<init>

Redacted()

An annotation to indicate that a particular property or class should be redacted in toString() implementations.