renovate-bot opened a new pull request, #6802: URL: https://github.com/apache/fineract/pull/6802
This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [com.google.googlejavaformat:google-java-format](https://redirect.github.com/google/google-java-format) | `1.35.0` → `2.0.0` |  |  | --- ### Release Notes <details> <summary>google/google-java-format (com.google.googlejavaformat:google-java-format)</summary> ### [`v2.0.0`](https://redirect.github.com/google/google-java-format/releases/tag/v2.0.0) [Compare Source](https://redirect.github.com/google/google-java-format/compare/v1.37.0...v2.0.0) google-java-format 2.0.0 replaces the formatter's layout engine, and makes some improvements to lambda formatting ([#​19](https://redirect.github.com/google/google-java-format/issues/19)). This release also adds an optional cleanup pass that makes small non-whitespace changes, which is enabled by default. Because of these changes, 2.0.0 reformats more existing code than a typical release. We recommend reformatting your codebase in a single commit when upgrading. #### Formatting changes - A lambda that is the only argument of a call is now kept on the same line as the call, instead of starting on a new line with an extra level of indentation ([#​19](https://redirect.github.com/google/google-java-format/issues/19)): ```java executor.submit(() -> { doSomething(); }); ``` - Text blocks are now indented as part of the main formatting pass, so their indentation is correct even with `--skip-reflowing-long-strings`. - Fixed indentation of comments after `assert`, enum constants, `for` initializers, `try` resources, multi-catch clauses, and type arguments. #### Cleanups - Added a `--cleanup` flag, enabled by default, for small non-whitespace changes: - removing redundant semicolons - removing empty annotation parentheses (`@Foo()` → `@Foo`) - removing parentheses around a single untyped lambda parameter (`(x) -> ...` → `x -> ...`) ([#​762](https://redirect.github.com/google/google-java-format/issues/762)) Cleanups only apply to the ranges being formatted. Use `--cleanup=false` to only change whitespace (and the existing `--skip-sorting-imports`, `--skip-removing-unused-imports`, and `--skip-reordering-modifiers` flags for the other non-whitespace changes). - When formatting a range with `--lines` or `--offset` and cleanups enabled, unformatted statements outside the range are re-indented to match the formatted output, so an edit that adds or removes a level of nesting doesn't leave the surrounding code misaligned. Blank lines left behind by cleanups are removed. #### Configuration - `--max-line-length=N` sets the column limit (default 100) ([#​425](https://redirect.github.com/google/google-java-format/issues/425)). (This flag was introduced in [v1.37.0](https://redirect.github.com/google/google-java-format/releases/tag/v1.37.0)) #### Language support - Support value classes and value records ([JEP 401: Value Objects (Preview)](https://openjdk.org/jeps/401)) #### Javadoc - Strip trailing asterisks before `*/` ([#​67](https://redirect.github.com/google/google-java-format/issues/67)). - Preserve relative indentation in `<pre>{@code ...}` blocks without leading `*`. - Join hyphenated words broken across lines. #### Long strings - When formatting a range with `--lines` or `--offset`, only long string literals in the requested range are reflowed ([#​1114](https://redirect.github.com/google/google-java-format/issues/1114)). - Escaped backslashes (e.g. `\\t` in a Windows path or a regular expression) are no longer split when reflowing long string literals ([#​1186](https://redirect.github.com/google/google-java-format/issues/1186), [#​1253](https://redirect.github.com/google/google-java-format/issues/1253), [#​1439](https://redirect.github.com/google/google-java-format/issues/1439)). - Failures while reflowing long strings are reported as errors instead of crashing or hanging the CLI ([#​1439](https://redirect.github.com/google/google-java-format/issues/1439)). #### Other fixes - Fixed formatting in the Eclipse plugin, which failed with `NoClassDefFoundError` since 1.36.0 because the plugin didn't bundle `commonmark` ([#​1428](https://redirect.github.com/google/google-java-format/issues/1428)). - The error for combining `--dry-run` with `--replace` now names the right flag ([#​1094](https://redirect.github.com/google/google-java-format/issues/1094)). #### API changes - `JavaFormatterOptions.Builder.cleanup(boolean)` controls the new cleanup pass, and defaults to `true`. This means `Formatter.formatSource` now makes the non-whitespace changes listed above by default. Integrations that format code the user is editing, e.g. format-on-save in an IDE, should set `cleanup(false)`; the IntelliJ plugin does this. - `Formatter.getFormatReplacements` is now strictly whitespace-only: it no longer reorders modifiers, and never applies cleanups. Use `Formatter.formatSource(String, Collection<Range<Integer>>)` to format character ranges with modifier reordering. - `JavaFormatterOptions.Style` became a record in 1.37.0. The enum-compatible methods, such as `Style.valueOf(String)`, have been restored for tools like Spotless that called them ([#​1478](https://redirect.github.com/google/google-java-format/issues/1478)). - The previous layout engine's classes (`com.google.googlejavaformat.Doc`, `OpsBuilder`, and related types) are no longer used to format Java, but are still included for other formatters that build on them. **Full Changelog**: <https://github.com/google/google-java-format/compare/v1.37.0...v2.0.0> ### [`v1.37.0`](https://redirect.github.com/google/google-java-format/releases/tag/v1.37.0) [Compare Source](https://redirect.github.com/google/google-java-format/compare/v1.36.1...v1.37.0) Changes: - Add a `--max-line-length` flag ([#​425](https://redirect.github.com/google/google-java-format/issues/425)) - Markdown javadoc formatting improvements ([`c51d691`](https://redirect.github.com/google/google-java-format/commit/c51d6916518ab4dfffbb086449fa00f7160ae468), [`ecba4fb`](https://redirect.github.com/google/google-java-format/commit/ecba4fb24fd064a64d2918c5fdb45546d08e3063)) - Add `--google-style` and `--style=google|aosp` flags for easier switching between Google and AOSP style ([#​1415](https://redirect.github.com/google/google-java-format/issues/1415)) Full Changelog: <https://github.com/google/google-java-format/compare/v1.36.1...v1.37.0> ### [`v1.36.1`](https://redirect.github.com/google/google-java-format/releases/tag/v1.36.1) #### What's Changed - Fix an issue with formatting indented list items. - Handle blank lines before and within Markdown lists more accurately. **Full Changelog**: <https://github.com/google/google-java-format/compare/v1.36.0...v1.36.1> ### [`v1.36.0`](https://redirect.github.com/google/google-java-format/releases/tag/v1.36.0) Changes: - Significant improvements to Markdown Javadoc support Full Changelog: <https://github.com/google/google-java-format/compare/v1.35.0...v1.36.0> </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - Between 12:00 AM and 03:59 AM, only on Monday (`* 0-3 * * 1`) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/apache/fineract). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xODguMiIsInVwZGF0ZWRJblZlciI6IjQ0LjE4OC4yIiwidGFyZ2V0QnJhbmNoIjoiZGV2ZWxvcCIsImxhYmVscyI6WyJyZW5vdmF0ZSJdfQ==--> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
