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.34.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.35.0
Choose a head ref
  • 8 commits
  • 11 files changed
  • 5 contributors

Commits on Feb 5, 2026

  1. Add simple native formatting test

    As discussed in #1327 a very simple formatting test is added to the native build.
    
    It's a fairly basic smoke test, but I actually verified here EvaristeGalois11#1 that it's enough to catch problems like the recent bug 😁
    
    Fixes #1331
    
    COPYBARA_INTEGRATE_REVIEW=#1331 from EvaristeGalois11:native-test 04b4238
    PiperOrigin-RevId: 866015724
    EvaristeGalois11 authored and google-java-format Team committed Feb 5, 2026
    Configuration menu
    Copy the full SHA
    f1f5c67 View commit details
    Browse the repository at this point in the history

Commits on Feb 18, 2026

  1. Automatic code cleanup.

    PiperOrigin-RevId: 871704300
    cushon authored and google-java-format Team committed Feb 18, 2026
    Configuration menu
    Copy the full SHA
    fc4b2e9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    730d3b1 View commit details
    Browse the repository at this point in the history

Commits on Feb 24, 2026

  1. Don't list the same annotation twice

    This was introduced via search-and-replace in d8216e8.
    
    Fixes #1340
    
    COPYBARA_INTEGRATE_REVIEW=#1340 from mernst:remove-duplicate-type-annotation 2bb3000
    PiperOrigin-RevId: 874817120
    mernst authored and google-java-format Team committed Feb 24, 2026
    Configuration menu
    Copy the full SHA
    b0ef30a View commit details
    Browse the repository at this point in the history

Commits on Feb 27, 2026

  1. Prepare to changes to var in AST

    After https://bugs.openjdk.org/browse/JDK-8268850, `VariableTree#getType` returns a new AST node `VarTypeTree` for variables declared with `var`.
    
    The new node could be handled in the visitor by implementing `visitVarType`, but that API is only available on the latest JDK versions using var, which would require creating a new version-specific visitor implementation. To defer doing that, this fix re-orders the logic that handles variable types to check if the next token is `var` first, to avoid needing to handle the new AST node.
    
    PiperOrigin-RevId: 876244813
    cushon authored and google-java-format Team committed Feb 27, 2026
    Configuration menu
    Copy the full SHA
    075e025 View commit details
    Browse the repository at this point in the history
  2. Migrate to records in google-java-format

    I was debugging something where having a `toString` implementation in `TypeWithDims` would have been helpful.
    
    PiperOrigin-RevId: 876329640
    cushon authored and google-java-format Team committed Feb 27, 2026
    Configuration menu
    Copy the full SHA
    4962993 View commit details
    Browse the repository at this point in the history

Commits on Mar 3, 2026

  1. Use JDK 21 for Eclipse plugin

    The plugin is failing to build after changes in [1] to add usages of records.
    
    [1] 4962993
    
    https://github.com/google/google-java-format/actions/runs/22568168992/job/65368984173
    
    PiperOrigin-RevId: 877811635
    cushon authored and google-java-format Team committed Mar 3, 2026
    Configuration menu
    Copy the full SHA
    2f7e558 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    cdd8a84 View commit details
    Browse the repository at this point in the history
Loading