google-java-format
google-java-format copied to clipboard
Reformats Java source code to comply with Google Java Style.
Hi, seems like I found an indentation bomb. Happend to try to format [OdfManifestSaxHandler.java](http://svn.apache.org/repos/asf/incubator/odf/trunk/odfdom/src/main/java/org/odftoolkit/odfdom/pkg/OdfManifestSaxHandler.java) (Rev: 1869391) and always failed with OutOfMemoryError (tried up to 12G of heap space). Original file...
Consider this file: ``` public class LineBreakCode { /** * File with list of checkouts. Set it to /dev/null to suppress reading. * Defaults to $HOME/.mvc-checkouts. */ public String checkouts...
## Setup **Version:** google-java-format-1.7-all-deps.jar **Machines:** - MacOS 10.14.5 - Fedora Linux 30 ## Problem The formatter splits lines inconsistently when the file has CRLF line endings vs. LF line endings....
Using latest version (3.9.5.RELEASE) Build Id: 201807031753 Platform: Eclipse Photon (4.8.0) I copy the google-java-format-eclipse-plugin_1.6.0.jar file into dropins directory, restart STS, but still don't see the google-java-format option under Preferences...
Hi all, It is not clear for me which part of code causes removing of breakpoints, but I think I fixed it.
Hi there, I meet a problem when trying to use google-java-format to re-format on simultaneous declarations in a java file: According to Google Java Style Guide [4.8.2-variable-declarations](https://google.github.io/styleguide/javaguide.html#s4.8.2-variable-declarations): >Every variable declaration...
https://google.github.io/styleguide/javaguide.html#s2.3.1-whitespace-characters The 2.3.1 problem is only in the sentence "All other whitespace characters in string and character literals are escaped": google-java-format doesn't replace a literal tab inside a string with...
Currently, gjf accepts either: ```java enum Foo { BAR, BAZ; } ``` or: ```java enum Foo { BAR, BAZ } ``` I had a code reviewer tell me to remove...
This is achieved by creating two different Eclipse Java Formatter implementations that are selectable in the _Java Code Style > Formatter_ preferences. The `google-java-format` acts just the same. A new...
Please create an official Docker image so that the CLI can be used without having to download the CLI jar from the releases page (and, to a lesser extent, so...