{"id":16582039,"url":"https://github.com/robinst/error-prone-unnecessary-default","last_synced_at":"2026-06-05T19:31:53.117Z","repository":{"id":245233952,"uuid":"817643149","full_name":"robinst/error-prone-unnecessary-default","owner":"robinst","description":"Example for reproducing a problem with error-prone's UnnecessaryDefaultInEnumSwitch","archived":false,"fork":false,"pushed_at":"2025-06-29T23:52:02.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-26T16:26:27.277Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robinst.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-20T06:50:38.000Z","updated_at":"2025-06-29T23:52:05.000Z","dependencies_parsed_at":"2024-06-20T19:09:20.915Z","dependency_job_id":"12bdf305-1fe4-479f-bab9-84108af50cce","html_url":"https://github.com/robinst/error-prone-unnecessary-default","commit_stats":null,"previous_names":["robinst/error-prone-unnecessary-default"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/robinst/error-prone-unnecessary-default","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robinst%2Ferror-prone-unnecessary-default","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robinst%2Ferror-prone-unnecessary-default/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robinst%2Ferror-prone-unnecessary-default/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robinst%2Ferror-prone-unnecessary-default/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robinst","download_url":"https://codeload.github.com/robinst/error-prone-unnecessary-default/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robinst%2Ferror-prone-unnecessary-default/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33957498,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-05T02:00:06.157Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-10-11T22:31:04.121Z","updated_at":"2026-06-05T19:31:53.111Z","avatar_url":"https://github.com/robinst.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e [!NOTE]\n\u003e Has been reported and fixed here: https://github.com/google/error-prone/issues/4443\n\n### error-prone minimal example for UnnecessaryDefaultInEnumSwitch\n\nExample to reproduce a problem with the\n[UnnecessaryDefaultInEnumSwitch](https://errorprone.info/bugpattern/UnnecessaryDefaultInEnumSwitch)\nbug pattern.\n\nSteps to reproduce:\n\n1. Clone this repo\n2. Run `bazel build :hello`\n\nExpected: The build should error with \"Switch handles all enum values\"\nActual: The build succeeds\n\nSee [Hello.java](src/main/java/example/Hello.java) for the source code.\nWhat's interesting is that if you change it to this:\n\n```java\ncase BAR -\u003e {\n}\ncase BAZ -\u003e {\n}\n```\n\nIt does error as expected.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobinst%2Ferror-prone-unnecessary-default","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobinst%2Ferror-prone-unnecessary-default","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobinst%2Ferror-prone-unnecessary-default/lists"}