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

Google-java-format-diff expects an executable `google-java-format` ([link](https://github.com/google/google-java-format/blob/master/scripts/google-java-format-diff.py#L101)), but this repository does not contain such file. This PR explains how to create such executable in README.md.

cla: yes

When applying GJF, some code is formatted differently between Unix-style line seperators (LF) and Windows-style line seperators (CRLF). With windows-style an extra linebreak is added, caused by the char difference...

Plugin Version: 1.8.0.1 Intellij Idea: 2020.1.4 StackTrace: ``` java.lang.Throwable: Write-unsafe context! Model changes are allowed from write-safe contexts only. Please ensure you're using invokeLater/invokeAndWait with a correct modality state (not...

IntelliJ

The [Google Java Style Guide](https://google.github.io/styleguide/javaguide.html#s4.8.3-arrays) specifies that arrays may be formatted in a block-like fashion, however google-java-format clobbers this to one line per element. For example, the following: ``` protected...

I have some quite large sql multiline string and when one line is over 100 characters it will re-format it onto 2 lines. While I believe this is the correct...

I'm trying to integrate this tool into my codebase at work, and I came across a curious situation where `google-java-format` will always add an empty comment. This is probably better...

When I format whole java file, all existing breakpoints are removed from the file. I am using eclipse IDE 2018-09 with google-java-format-eclipse-plugin_1.6.0.

Eclipse

Execution default-cli of goa l com.cosium.code:git-code-format-maven-plugin:2.4:format-code failed: com.google.googlejavaformat.java.FormatterException: error: Imports not contiguous (perhaps a comment separates them?)

Hello! I'm working on a Spring Batch application using IntelliJ IDEA 2019.3.3 CE and I noticed a "weird" format using google-java-format 1.7. Code before gjf: ``` @Autowired public AllineamentoTasklet( final...

I am implementing a tool that generates Java source code. It uses GJF to make the output more readable. At the moment, source code is generated as text and written...