Comparing v1.21.0...v1.22.0 · google/google-java-format

Commits on Mar 6, 2024

  1. Configuration menu

    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

    Browse the repository at this point in the history

  2. Configuration menu

    Browse the repository at this point in the history

Commits on Mar 29, 2024

  1. 1 Configuration menu

    Browse the repository at this point in the history

Commits on Mar 30, 2024

  1. Configuration menu

    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

    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

    Browse the repository at this point in the history

  3. Configuration menu

    Browse the repository at this point in the history