Comparing v1.17.0...v1.18.0 · google/google-java-format
Commits on Sep 6, 2023
-
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
Commits on Sep 7, 2023
-
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
Commits on Sep 12, 2023
-
Handle
final varlambda variablesThe 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