Comparing v1.17.0...v1.18.0 · google/google-java-format

Commits on Jul 27, 2023

  1. Configuration menu

    Browse the repository at this point in the history

Commits on Aug 6, 2023

  1. Configuration menu

    Browse the repository at this point in the history

Commits on Sep 6, 2023

  1. Configuration menu

    Browse the repository at this point in the history

  2. Make google-java-format friendlier to TSAN

    This code does deliberate racy initialization of some memoized values,
    and there is a static final instance of the `Space` subclass that ends
    up being shared across multiple threads.
    
    Tested: sponge/1777b644-2dd8-420b-ad06-b4f17c893d8f
    PiperOrigin-RevId: 563181626

    cushon authored and google-java-format Team committed

    Sep 6, 2023
    Configuration menu

    Browse the repository at this point in the history

Commits on Sep 7, 2023

  1. Configuration menu

    Browse the repository at this point in the history

  2. Follow-up to 9f2cd68

    Use `com.google.common.base.Supplier`, for compatibility with clients
    that are using the Android version of Guava. Fixes e.g.
    
    ```
    Exception in thread "main" java.lang.IncompatibleClassChangeError: Class com.google.common.base.Suppliers$NonSerializableMemoizingSupplier does not implement the requested interface java.util.function.Supplier
    ```
    
    PiperOrigin-RevId: 563446857

    cushon authored and google-java-format Team committed

    Sep 7, 2023
    Configuration menu

    Browse the repository at this point in the history

Commits on Sep 12, 2023

  1. Handle final var lambda variables

    The start position of `final` variable is apparently after the token for
    `final`, this works around that by inlining a call to `visitVariable` and
    dropping the `sync` call that asserts the start position of the current
    node matches the next token.
    
    Fixes #959
    
    PiperOrigin-RevId: 564710136

    cushon authored and google-java-format Team committed

    Sep 12, 2023
    Configuration menu

    Browse the repository at this point in the history

Commits on Sep 21, 2023

  1. Configuration menu

    Browse the repository at this point in the history

Commits on Sep 30, 2023

  1. Configuration menu

    Browse the repository at this point in the history

Commits on Oct 2, 2023

  1. Configuration menu

    Browse the repository at this point in the history