google-java-format icon indicating copy to clipboard operation
google-java-format copied to clipboard

Reformats Java source code to comply with Google Java Style.

Results 223 google-java-format issues
Sort by recently updated
recently updated
newest added

Split from #789. It was stated there that some users are using HTML tags I'd admittedly never heard of, like ` `. I'm not sure what the formatter currently does:...

Formatting should never change the rendered appearance of javadoc. Excellent details are in #789, but I'm splitting this out as separate issue.

We use multiline strings to write queries using the \@Query annotation. The formatter does a poor job of formatting these strings and in some cases does not attempt to format...

# Environment Project SDK: openjdk-19 Modules Language Level: 11 # Problems assumeFilename_error() from MainTest.java doesn't pass # Screenshot ![图片](https://user-images.githubusercontent.com/64005655/208112305-1bdc35ff-f475-4817-a7ac-e7ca3cd97ae8.png) ![图片](https://user-images.githubusercontent.com/64005655/208113063-75d59fac-daec-4062-8d66-54b93e9cd0a6.png)

Using a record pattern in a switch (Java 19 preview) e.g.: ```java int c = switch (r) { case Record(var a) -> a; case AnotherRecord(var b) -> b; default ->...

It works as expected with `17 (Oracle Corporation 17+35-2724)` It fails as follows with `17-ea (Azul Systems, Inc. 17-ea+12)` ``` Step 'google-java-format' found problem in 'src/test/java/jdbc/jdbc/MSSQLTestService.java': 195:8: error: java.lang.NoSuchMethodError: 'java.util.List...

I have a file that consists mostly of constant strings written as text blocks. When I apply the formatter to the file, the text blocks are inconsistently indented, with some...

If you specify both --dry-run (or -n) and --replace (or -replace, -r or -i) you get a message stating "cannot use --dry-run and --in-place at the same time". The problem...

Hi, I drop the google-java-format-eclipse-plugin-1.20.0.jar file in dropins eclipse folder. I set google-java-formatter in my eclipse workspace and project configuration. However, the formatter hasen't effect over my code. I do...

Eclipse