-
Notifications
You must be signed in to change notification settings - Fork 885
Comparing changes
Open a pull request
base repository: google/google-java-format
base: v1.22.0
head repository: google/google-java-format
compare: v1.23.0
- 13 commits
- 34 files changed
- 4 contributors
Commits on Apr 6, 2024
-
Support overlapping --lines ranges in google-java-format.
The strict behavior comes from the underlying ImmutableRangeSet.Builder class, which does not allow overlapping ranges to be added. Let's use TreeRangeSet instead. I have also updated the documentation for the --lines flag to make it clear that the line numbers are a closed-closed interval. Tested with: ``` blaze run :google_java_format_binary -- --lines=1:5 --lines=3:8 - < Foo.java ``` Before this CL the command fails with: ``` '--lines=1:5' '--lines=3:8' - Overlapping ranges not permitted but found [0..5) overlapping [2..8) ``` After this CL the command succeeds. PiperOrigin-RevId: 622410610
Configuration menu - View commit details
-
Copy full SHA for c4b467d - Browse repository at this point
Copy the full SHA c4b467dView commit details
Commits on Apr 15, 2024
-
update the IntelliJ plugin to 1.22.0
PiperOrigin-RevId: 624993575
Configuration menu - View commit details
-
Copy full SHA for 6e3b852 - Browse repository at this point
Copy the full SHA 6e3b852View commit details
Commits on Apr 29, 2024
-
Remove support for the String Templates preview feature
Rollback of b5feefe, 38de9c4, e946e82 See https://bugs.openjdk.org/browse/JDK-8329949 PiperOrigin-RevId: 629182379
Configuration menu - View commit details
-
Copy full SHA for fdf4b29 - Browse repository at this point
Copy the full SHA fdf4b29View commit details
Commits on May 1, 2024
-
Add a test for trailing unicode escaped whitespace in text blocks
PiperOrigin-RevId: 629785894
Configuration menu - View commit details
-
Copy full SHA for bec248b - Browse repository at this point
Copy the full SHA bec248bView commit details
Commits on May 29, 2024
-
Handle classes with no members and semi-colons
PiperOrigin-RevId: 638312117
Configuration menu - View commit details
-
Copy full SHA for b9b6730 - Browse repository at this point
Copy the full SHA b9b6730View commit details
Commits on May 30, 2024
-
Prepare g-j-f for some internal javac API changes
* Refactor comment handling in tokenization to avoid extending javac's internal Comment. This prepares for upcoming JDK changes to the Comment API, which break the current subclass approach by changing the return type of `Comment#getPos`, see also similar changes to Error Prone in unknown commit * `JCCompilationUnit#getImports` no longer returns `JCImport`, as part of the changes for modular imports. Supporting modular imports is future work, this change just avoids a crash formatting the existing syntax on the latest JDK versions. PiperOrigin-RevId: 638669955
Configuration menu - View commit details
-
Copy full SHA for 0b384e3 - Browse repository at this point
Copy the full SHA 0b384e3View commit details
Commits on May 31, 2024
-
PiperOrigin-RevId: 639062534
Configuration menu - View commit details
-
Copy full SHA for db08589 - Browse repository at this point
Copy the full SHA db08589View commit details
Commits on Jun 5, 2024
-
Fix modifier order handling for
non-sealed
`non-sealed` is tokenized as three tokens, the modifier sorting logic was assuming it would show up as a single token. PiperOrigin-RevId: 640534518
Configuration menu - View commit details
-
Copy full SHA for 7fd9300 - Browse repository at this point
Copy the full SHA 7fd9300View commit details
Commits on Jun 17, 2024
-
Adjust indentation of line comments inside expression switches
For statement switches there's some ambiguity about whether a comment documents the previous or next case: ``` case 1: // case 1 falls through to 2 case 2: doSomething() ``` ``` // this is information about case 1 case 1: // this is information about case 2 case 2: doSomething() ``` For expression switches there is no fall through, so assume that a line comments before a case label always apply to the case label after it. PiperOrigin-RevId: 644163145
Configuration menu - View commit details
-
Copy full SHA for 3affd63 - Browse repository at this point
Copy the full SHA 3affd63View commit details
Commits on Jun 18, 2024
-
Configuration menu - View commit details
-
Copy full SHA for f7543b2 - Browse repository at this point
Copy the full SHA f7543b2View commit details
Commits on Jul 17, 2024
-
PiperOrigin-RevId: 653332912
1Configuration menu - View commit details
-
Copy full SHA for 1296f1d - Browse repository at this point
Copy the full SHA 1296f1dView commit details
Commits on Jul 29, 2024
-
Add customization for google-java-format arguments
Setting google-java-format-arguments to `'("--aosp")` makes it easy to format on Android java files. PiperOrigin-RevId: 657263779
Configuration menu - View commit details
-
Copy full SHA for de57db5 - Browse repository at this point
Copy the full SHA de57db5View commit details
Commits on Jul 30, 2024
-
Configuration menu - View commit details
-
Copy full SHA for f1f6874 - Browse repository at this point
Copy the full SHA f1f6874View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v1.22.0...v1.23.0