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.21.0
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.22.0
Choose a head ref
  • 8 commits
  • 12 files changed
  • 5 contributors

Commits on Mar 6, 2024

  1. Print all known values when an invalid range is given.

    For easier root cause analysis when an invalid request is passed.
    
    PiperOrigin-RevId: 613110312
    java-team-github-bot authored and google-java-format Team committed Mar 6, 2024
    Configuration menu
    Copy the full SHA
    823d7c9 View commit details
    Browse the repository at this point in the history

Commits on Mar 18, 2024

  1. Update tycho version from 3.0.0 to 3.0.5

    I think this fixes crashes from the presubmit for unknown commit:
    
    ```
    Error: Exception in thread "main" java.lang.NoSuchMethodError: 'java.lang.String org.eclipse.equinox.p2.core.IProvisioningAgent.getProperty(java.lang.String)'
    	at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getAgentPropertyWithFallback(SimpleArtifactRepository.java:813)
    	at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getMaximumThreads(SimpleArtifactRepository.java:1012)
    ```
    
    I tested a PR with these changes and it was clean [1], so either this helps or
    it was a transient issue, but either way this shouldn't hurt.
    
    [1] https://github.com/google/google-java-format/actions/runs/8329274139
    
    PiperOrigin-RevId: 616846344
    cushon authored and google-java-format Team committed Mar 18, 2024
    Configuration menu
    Copy the full SHA
    8ee063e View commit details
    Browse the repository at this point in the history
  2. Update the IntelliJ plugin to gfj 1.21.0.

    PiperOrigin-RevId: 616908365
    plumpy authored and google-java-format Team committed Mar 18, 2024
    Configuration menu
    Copy the full SHA
    71a755b View commit details
    Browse the repository at this point in the history

Commits on Mar 29, 2024

  1. Java-format: format multiples files in parallel to improve speed

    PiperOrigin-RevId: 620100015
    java-team-github-bot authored and google-java-format Team committed Mar 29, 2024
    1 Configuration menu
    Copy the full SHA
    3ee6e2a View commit details
    Browse the repository at this point in the history

Commits on Mar 30, 2024

  1. Stop using floats to represent line widths, which must be integers.

    Float was used so that forced breaks could be modeled with POSITIVE_INFINISTY, but an arbitrary large int works just as well.
    
    PiperOrigin-RevId: 620395732
    nreid260 authored and google-java-format Team committed Mar 30, 2024
    Configuration menu
    Copy the full SHA
    3167818 View commit details
    Browse the repository at this point in the history

Commits on Apr 1, 2024

  1. Support multiline tokens in GJF-core

    Cursory perf measurements show no detectable cost from scanning every token. If one should be discovered later, we can add guards to only scan potentially multiline tokens.
    
    PiperOrigin-RevId: 620833035
    nreid260 authored and google-java-format Team committed Apr 1, 2024
    Configuration menu
    Copy the full SHA
    9bdae02 View commit details
    Browse the repository at this point in the history
  2. Update text block formatting after nickreid's improvements in unknown…

    … commit
    
    Previously the formatting was adding a forced break at the beginning of text blocks, which caused issues like #1081. With the changes in the baseline CL it correctly handles the 'width' of text blocks containing newlines as infinity, instead of counting the number of characters and treating the newline as having width 1.
    
    Fixes #1081
    
    PiperOrigin-RevId: 620933964
    cushon authored and google-java-format Team committed Apr 1, 2024
    Configuration menu
    Copy the full SHA
    33bf757 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0a46e9e View commit details
    Browse the repository at this point in the history
Loading