Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: google/google-java-format
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.18.1
Choose a base ref
...
head repository: google/google-java-format
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.19.0
Choose a head ref
  • 10 commits
  • 35 files changed
  • 5 contributors

Commits on Oct 27, 2023

  1. Don't try to reflow text blocks

    Fixes #976
    
    PiperOrigin-RevId: 577249036
    cushon authored and google-java-format Team committed Oct 27, 2023
    Configuration menu
    Copy the full SHA
    295e7a4 View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2023

  1. Handle type annotations on method reference qualifiers

    e.g.
    
    ```
    Supplier<List<?>> a = @A(0x45) ArrayList::new;
    Supplier<List<?>> b = @A(0x46) ImmutableList::of;
    ```
    
    The necessary logic is already there, but the start position information
    for the method reference doesn't include the leading type annotations,
    which was resulting in an assertion to fail.
    
    PiperOrigin-RevId: 577850593
    cushon authored and google-java-format Team committed Oct 30, 2023
    Configuration menu
    Copy the full SHA
    53390d9 View commit details
    Browse the repository at this point in the history

Commits on Nov 30, 2023

  1. Add javax.tools.Tool implementation for google-java-format.

    PiperOrigin-RevId: 586765411
    java-team-github-bot authored and google-java-format Team committed Nov 30, 2023
    Configuration menu
    Copy the full SHA
    205b85f View commit details
    Browse the repository at this point in the history

Commits on Dec 7, 2023

  1. Bump Guava to 32.1.3

    There is an issue about resolving transitive dependencies in Guava breaks GJF 1.18.1 integration in [Spotless](https://github.com/diffplug/spotless), which has been fixed in Guava 32.1.3, it would be nice to follow this update.
    
    See:
    - google/guava#6657.
    - https://github.com/google/guava/releases/tag/v32.1.3.
    
    Fixes #996
    
    COPYBARA_INTEGRATE_REVIEW=#996 from Goooler:bump-guava 1e5ed85
    PiperOrigin-RevId: 588824173
    Goooler authored and google-java-format Team committed Dec 7, 2023
    Configuration menu
    Copy the full SHA
    ad77154 View commit details
    Browse the repository at this point in the history
  2. 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=#988 from TheCK:master 4771486
    PiperOrigin-RevId: 588913297
    TheCK authored and google-java-format Team committed Dec 7, 2023
    Configuration menu
    Copy the full SHA
    b86c508 View commit details
    Browse the repository at this point in the history

Commits on Dec 8, 2023

  1. Initial support for pattern matching in switches

    Fixes #937, #880
    
    PiperOrigin-RevId: 589140113
    cushon authored and google-java-format Team committed Dec 8, 2023
    Configuration menu
    Copy the full SHA
    430ba3b View commit details
    Browse the repository at this point in the history
  2. Support unnamed variables

    Fixes #978
    
    PiperOrigin-RevId: 589179786
    cushon authored and google-java-format Team committed Dec 8, 2023
    Configuration menu
    Copy the full SHA
    b92435a View commit details
    Browse the repository at this point in the history
  3. Make g-j-f native image more compatible

    I was reminded of this by bazelbuild/bazel#20306
    
    PiperOrigin-RevId: 589210771
    cushon authored and google-java-format Team committed Dec 8, 2023
    Configuration menu
    Copy the full SHA
    dc8b461 View commit details
    Browse the repository at this point in the history

Commits on Dec 18, 2023

  1. Initial support for string templates

    Fixes #981
    
    PiperOrigin-RevId: 591982309
    cushon authored and google-java-format Team committed Dec 18, 2023
    Configuration menu
    Copy the full SHA
    b5feefe View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bfb281e View commit details
    Browse the repository at this point in the history
Loading