Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cherry-pick upstream fixes for switch expressions with pattern matching #1155

Draft
wants to merge 5 commits into
base: develop
Choose a base branch
from

Commits on Oct 19, 2024

  1. bump java

    eholmer1 committed Oct 19, 2024
    Configuration menu
    Copy the full SHA
    a67bad9 View commit details
    Browse the repository at this point in the history
  2. Remove tests for handling of extra semi-colons

    javac no longer accepts these, see https://bugs.openjdk.org/browse/JDK-8027682
    
    PiperOrigin-RevId: 525775880
    cushon authored and eholmer1 committed Oct 19, 2024
    Configuration menu
    Copy the full SHA
    e658a4f View commit details
    Browse the repository at this point in the history
  3. Add support for guard clauses in Java 21 switch expressions

    This PR adds support for `switch` statements where a `case` has a guard clause.
    
    See Issue #983
    
    Fixes #988
    
    COPYBARA_INTEGRATE_REVIEW=google/google-java-format#988 from TheCK:master 4771486db7d8aab84eb4ecf8e68af2612d0c2b5c
    PiperOrigin-RevId: 588913297
    TheCK authored and eholmer1 committed Oct 19, 2024
    Configuration menu
    Copy the full SHA
    065c379 View commit details
    Browse the repository at this point in the history

Commits on Oct 21, 2024

  1. Configuration menu
    Copy the full SHA
    2f58013 View commit details
    Browse the repository at this point in the history

Commits on Oct 22, 2024

  1. format

    CRogers committed Oct 22, 2024
    Configuration menu
    Copy the full SHA
    640ca01 View commit details
    Browse the repository at this point in the history