{"id":13766211,"url":"https://github.com/square/auto-value-redacted","last_synced_at":"2025-06-13T01:39:47.565Z","repository":{"id":36391379,"uuid":"40696271","full_name":"square/auto-value-redacted","owner":"square","description":"An extension for Google's AutoValue that omits redacted fields from toString().","archived":false,"fork":false,"pushed_at":"2023-03-19T08:30:39.000Z","size":146,"stargazers_count":211,"open_issues_count":0,"forks_count":15,"subscribers_count":25,"default_branch":"master","last_synced_at":"2024-04-13T17:52:13.143Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/square.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2015-08-14T04:48:05.000Z","updated_at":"2024-03-31T14:16:34.000Z","dependencies_parsed_at":"2024-01-25T19:04:58.694Z","dependency_job_id":"93cf3e23-884d-4ea8-9edf-747ff3d2a9c6","html_url":"https://github.com/square/auto-value-redacted","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/square%2Fauto-value-redacted","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/square%2Fauto-value-redacted/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/square%2Fauto-value-redacted/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/square%2Fauto-value-redacted/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/square","download_url":"https://codeload.github.com/square/auto-value-redacted/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253486285,"owners_count":21916134,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T16:00:52.664Z","updated_at":"2025-05-10T21:33:16.356Z","avatar_url":"https://github.com/square.png","language":"Java","funding_links":[],"categories":["Default methods","Java"],"sub_categories":[],"readme":"# AutoValue: Redacted Extension\n\nAn extension for Google's [AutoValue](https://github.com/google/auto/tree/master/value) that omits\n`@Redacted` field values from `toString()`.\n\n\n## Usage\n\nInclude the extension in your project, define a `@Redacted` annotation, and apply it to any\nfields that you wish to redact.\n\n```java\n@Retention(SOURCE)\n@Target({METHOD, PARAMETER, FIELD})\npublic @interface Redacted {\n}\n```\n\n```java\n@AutoValue\npublic abstract class User {\n  public abstract String name();\n  @Redacted public abstract String phoneNumber();\n}\n```\n\nWhen you call `toString()` any `@Redacted` properties are hidden:\n```\nUser{name=Bob, phoneNumber=██}\n```\n\n\n## Download\n\nAdd a Gradle dependency:\n\n```groovy\nannotationProcessor 'com.squareup.auto.value:auto-value-redacted:1.1.1'\n```\n\nor Maven:\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.squareup.auto.value\u003c/groupId\u003e\n  \u003cartifactId\u003eauto-value-redacted\u003c/artifactId\u003e\n  \u003cversion\u003e1.1.1\u003c/version\u003e\n  \u003cscope\u003eprovided\u003c/scope\u003e\n\u003c/dependency\u003e\n```\n\nSnapshots of the development version are available in [Sonatype's `snapshots` repository][snap].\n\n\n## License\n\n```\nCopyright 2015 Square, Inc.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n   http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n\n\n\n\n [snap]: https://oss.sonatype.org/content/repositories/snapshots/\n [apt]: https://bitbucket.org/hvisser/android-apt\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsquare%2Fauto-value-redacted","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsquare%2Fauto-value-redacted","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsquare%2Fauto-value-redacted/lists"}