| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:c4487fef-2468-17e9-c860-78ea66c26ea8 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 823E:2A1648:796235:A11450:6AFBD00B |
| html-safe-nonce | f6f4c6b9b73fdf8ea1c9b2ea0ed4d14cc57ac2dc23c4c4aea7456c1a01833af1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MjNFOjJBMTY0ODo3OTYyMzU6QTExNDUwOjZBRkJEMDBCIiwidmlzaXRvcl9pZCI6IjMxMzA5MjU1NDMwMzgxMTE3NTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 70d183870271f85d5def1dd5a9b6be57d40b76c078edfd56fdf1873ca2396d56 |
| hovercard-subject-tag | pull_request:1596318791 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/google/google-java-format/988/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/f7f5c973246d22e4b4ca89741e6b8abcf89efe24e9703f60fba3ec565b9a5c62/google/google-java-format/pull/988 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f7f5c973246d22e4b4ca89741e6b8abcf89efe24e9703f60fba3ec565b9a5c62/google/google-java-format/pull/988 |
| og:image:alt | This PR adds support for switch statements where a case has a guard clause.
See Issue #983 |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | TheCK |
| hostname | github.com |
| expected-hostname | github.com |
| None | 18742cb872ec73544356e60359266b67aafece70c4ce008042e06227924cdd07 |
| turbo-cache-control | no-cache |
| go-import | github.com/google/google-java-format git https://github.com/google/google-java-format.git |
| octolytics-dimension-user_id | 1342004 |
| octolytics-dimension-user_login | google |
| octolytics-dimension-repository_id | 35448780 |
| octolytics-dimension-repository_nwo | google/google-java-format |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 35448780 |
| octolytics-dimension-repository_network_root_nwo | google/google-java-format |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 820be804f18e1ef3940bd74a00d41d73d02e2b91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | pull-requests |
| Skip to content | https://github.com/google/google-java-format/pull/988#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogle%2Fgoogle-java-format%2Fpull%2F988 |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogle%2Fgoogle-java-format%2Fpull%2F988 |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=google%2Fgoogle-java-format |
| Reload | https://github.com/google/google-java-format/pull/988 |
| Reload | https://github.com/google/google-java-format/pull/988 |
| Reload | https://github.com/google/google-java-format/pull/988 |
| google | https://github.com/google |
| google-java-format | https://github.com/google/google-java-format |
| Code | https://github.com/google/google-java-format |
| Issues84 (84) | https://github.com/google/google-java-format/issues |
| Pull requests35 (35) | https://github.com/google/google-java-format/pulls |
| Actions | https://github.com/google/google-java-format/actions |
| Projects | https://github.com/google/google-java-format/projects |
| Wiki | https://github.com/google/google-java-format/wiki |
| Security and quality | https://github.com/google/google-java-format/security |
| Insights | https://github.com/google/google-java-format/pulse |
| https://github.com/google/google-java-format |
| TheCK | https://github.com/TheCK |
| google:master | https://github.com/google/google-java-format/tree/master |
| TheCK:master | https://github.com/TheCK/google-java-format/tree/master |
| Conversation | https://github.com/google/google-java-format/pull/988 |
| Commits3 (3) | https://github.com/google/google-java-format/pull/988/commits |
| Checks | https://github.com/google/google-java-format/pull/988/checks |
| Files changed | https://github.com/google/google-java-format/pull/988/files |
| Add support for guard clauses in Java 21 switch expressions | https://github.com/google/google-java-format/pull/988#top |
| TheCK | https://github.com/TheCK |
| google:master | https://github.com/google/google-java-format/tree/master |
| TheCK:master | https://github.com/TheCK/google-java-format/tree/master |
|
| https://github.com/TheCK |
| TheCK | https://github.com/TheCK |
| Nov 10, 2023 | https://github.com/google/google-java-format/pull/988#issue-1987754666 |
| #983 | https://github.com/google/google-java-format/issues/983 |
| Please reload this page | https://github.com/google/google-java-format/pull/988 |
|
| https://github.com/TheCK |
| Add support for guard clauses in Java 21 switch expressions | https://github.com/google/google-java-format/pull/988/commits/8b528f09b35f21267d01f72ffa6c81b1047ce0e8 |
| 8b528f0 | https://github.com/google/google-java-format/pull/988/commits/8b528f09b35f21267d01f72ffa6c81b1047ce0e8 |
| https://github.com/apps/google-cla |
| google-cla | https://github.com/apps/google-cla |
| Nov 10, 2023 | https://github.com/google/google-java-format/pull/988#issuecomment-1805861575 |
| failed invocation | https://github.com/google/google-java-format/pull/988/checks?check_run_id=18565488931 |
| Please reload this page | https://github.com/google/google-java-format/pull/988 |
| https://github.com/TheCK |
| TheCK | https://github.com/TheCK |
|
Nov 21, 2023
| https://github.com/google/google-java-format/pull/988#ref-issue-1627522462 |
|
Formatter fails when complex case is part of switch expression
#922
| https://github.com/google/google-java-format/issues/922 |
| https://github.com/cushon |
| cushon | https://github.com/cushon |
|
Dec 7, 2023
| https://github.com/google/google-java-format/pull/988#pullrequestreview-1770723746 |
|
View reviewed changes
| https://github.com/google/google-java-format/pull/988/files/8b528f09b35f21267d01f72ffa6c81b1047ce0e8 |
| cushon | https://github.com/cushon |
| https://github.com/google/google-java-format/pull/988#pullrequestreview-1770723746 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| google-java-format/core/src/test/java/com/google/googlejavaformat/java/FormatterIntegrationTest.java | https://github.com/google/google-java-format/blob/205b85f2315c48b2d6280a18c6ea9dbe814d3709/core/src/test/java/com/google/googlejavaformat/java/FormatterIntegrationTest.java#L49 |
| 205b85f | https://github.com/google/google-java-format/commit/205b85f2315c48b2d6280a18c6ea9dbe814d3709 |
| Please reload this page | https://github.com/google/google-java-format/pull/988 |
| core/src/main/java/com/google/googlejavaformat/java/java21/Java21InputAstVisitor.java | https://github.com/google/google-java-format/pull/988/files/8b528f09b35f21267d01f72ffa6c81b1047ce0e8#diff-f5afa1f37ac865b31217444b52b31d74b03a0f9208eec0697516e964ad3e5476 |
| cushon | https://github.com/cushon |
| Dec 7, 2023 | https://github.com/google/google-java-format/pull/988#discussion_r1419373818 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| google-java-format/core/src/main/java/com/google/googlejavaformat/java/JavaInputAstVisitor.java | https://github.com/google/google-java-format/blob/205b85f2315c48b2d6280a18c6ea9dbe814d3709/core/src/main/java/com/google/googlejavaformat/java/JavaInputAstVisitor.java#L3781 |
| 205b85f | https://github.com/google/google-java-format/commit/205b85f2315c48b2d6280a18c6ea9dbe814d3709 |
| Please reload this page | https://github.com/google/google-java-format/pull/988 |
| core/src/main/java/com/google/googlejavaformat/java/Formatter.java | https://github.com/google/google-java-format/pull/988/files/8b528f09b35f21267d01f72ffa6c81b1047ce0e8#diff-01d3c457c30ba2b13abeb8f04bd9a5149d968dc02227c80c3c6852f13f9d3b31 |
| cushon | https://github.com/cushon |
| Dec 7, 2023 | https://github.com/google/google-java-format/pull/988#discussion_r1419377255 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/google/google-java-format/pull/988 |
|
| https://github.com/TheCK |
| Merge branch 'google:master' into master | https://github.com/google/google-java-format/pull/988/commits/efcc9783321c6264f0db2cd89b7a56fbe83aac8e |
| efcc978 | https://github.com/google/google-java-format/pull/988/commits/efcc9783321c6264f0db2cd89b7a56fbe83aac8e |
| https://github.com/cushon |
| cushon | https://github.com/cushon |
|
Dec 7, 2023
| https://github.com/google/google-java-format/pull/988#pullrequestreview-1771157182 |
|
View reviewed changes
| https://github.com/google/google-java-format/pull/988/files |
|
| https://github.com/TheCK |
| refactor guard clause PR and add a test | https://github.com/google/google-java-format/pull/988/commits/628fd63e298381cd655c2e542215267beeb873e0 |
| 628fd63 | https://github.com/google/google-java-format/pull/988/commits/628fd63e298381cd655c2e542215267beeb873e0 |
| https://github.com/TheCK |
| TheCK | https://github.com/TheCK |
| force-pushed | https://github.com/google/google-java-format/compare/4771486db7d8aab84eb4ecf8e68af2612d0c2b5c..628fd63e298381cd655c2e542215267beeb873e0 |
| 4771486 | https://github.com/google/google-java-format/commit/4771486db7d8aab84eb4ecf8e68af2612d0c2b5c |
| 628fd63 | https://github.com/google/google-java-format/commit/628fd63e298381cd655c2e542215267beeb873e0 |
|
Compare
| https://github.com/google/google-java-format/compare/4771486db7d8aab84eb4ecf8e68af2612d0c2b5c..628fd63e298381cd655c2e542215267beeb873e0 |
| December 7, 2023 21:28 | https://github.com/google/google-java-format/pull/988#event-11187142222 |
| https://github.com/TheCK |
| TheCK | https://github.com/TheCK |
| Dec 7, 2023 | https://github.com/google/google-java-format/pull/988#issuecomment-1846144609 |
| @cushon | https://github.com/cushon |
| Please reload this page | https://github.com/google/google-java-format/pull/988 |
| copybara-service | https://github.com/apps/copybara-service |
|
Dec 7, 2023
| https://github.com/google/google-java-format/pull/988#ref-commit-23714d0 |
|
| https://github.com/TheCK |
| Add support for guard clauses in Java 21 switch expressions | https://github.com/google/google-java-format/commit/23714d0286c51a0a8f0dafe301c94e3f70036004 |
| 23714d0 | https://github.com/google/google-java-format/commit/23714d0286c51a0a8f0dafe301c94e3f70036004 |
| #983 | https://github.com/google/google-java-format/issues/983 |
| #988 | https://github.com/google/google-java-format/pull/988 |
| #988 | https://github.com/google/google-java-format/pull/988 |
| 4771486 | https://github.com/google/google-java-format/commit/4771486db7d8aab84eb4ecf8e68af2612d0c2b5c |
| https://github.com/apps/copybara-service |
| copybara-service | https://github.com/apps/copybara-service |
|
Dec 7, 2023
| https://github.com/google/google-java-format/pull/988#ref-pullrequest-2031634772 |
|
Add support for guard clauses in Java 21 switch expressions
#998
| https://github.com/google/google-java-format/pull/998 |
| https://github.com/apps/copybara-service |
| copybara-service | https://github.com/apps/copybara-service |
| b86c508 | https://github.com/google/google-java-format/commit/b86c508be5f42e7ed0d55cd1abe2c04d2db66676 |
| Dec 7, 2023 | https://github.com/google/google-java-format/pull/988#event-11187655071 |
| https://github.com/EvaristeGalois11 |
| EvaristeGalois11 | https://github.com/EvaristeGalois11 |
|
Dec 19, 2023
| https://github.com/google/google-java-format/pull/988#ref-pullrequest-2047799264 |
|
Upgrade jdk used by release action to 21
#1015
| https://github.com/google/google-java-format/pull/1015 |
| eholmer | https://github.com/eholmer |
|
Oct 21, 2024
| https://github.com/google/google-java-format/pull/988#ref-commit-065c379 |
|
| https://github.com/TheCK |
|
| https://github.com/eholmer-pltr |
| Add support for guard clauses in Java 21 switch expressions | https://github.com/palantir/palantir-java-format/commit/065c3799f4ca06edd3b42d18b7ccff0c12fa32c7 |
| 065c379 | https://github.com/palantir/palantir-java-format/commit/065c3799f4ca06edd3b42d18b7ccff0c12fa32c7 |
| #983 | https://github.com/palantir/palantir-java-format/pull/983 |
| #988 | https://github.com/palantir/palantir-java-format/pull/988 |
| google/google-java-format#988 | https://github.com/google/google-java-format/pull/988 |
| https://github.co/hiddenchars |
| https://github.com/google/google-java-format/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogle%2Fgoogle-java-format%2Fpull%2F988 |
|
| https://github.com/cushon |
|
cushon
| https://github.com/cushon |
|
| https://github.com/google/google-java-format/pull/988/files/4771486db7d8aab84eb4ecf8e68af2612d0c2b5c |
| Please reload this page | https://github.com/google/google-java-format/pull/988 |
| Please reload this page | https://github.com/google/google-java-format/pull/988 |
|
| https://github.com/TheCK |
|
| https://github.com/cushon |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |