google-java-format
google-java-format copied to clipboard
Reformats Java source code to comply with Google Java Style.
The google-java-format Eclipse plugin works in Eclipse IDE for Java Developers Version: Oxygen Release (4.7.0) Build id: 20170620-1800 But it does not provide AOSP Style option. Is this intentional design?...
Here is a test: ``` package some.test; public class Test { String myLongString = "The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the...
Main.java has a very simple path extension check. ```java for (String fileName : parameters.files()) { if (!fileName.endsWith(".java")) { errWriter.println("Skipping non-Java file: " + fileName); continue; } ``` Is there any...
Code written ``` @Resource private OrgInfoRepository orgInfoRepository; ``` is changed to ``` @Resource private OrgInfoRepository orgInfoRepository; ``` My assumption is that this happens since the line isn't long enough to...
The [README](https://github.com/google/google-java-format/blob/master/README.md#eclipse) states: “The plugin adds a google-java-format formatter implementation that can be configured in Window > Preferences > Java > Code Style > Formatter > Formatter Implementation.” It is...
are the extra newlines intentional? before: ``` java Stream itemIdsStream = stream(members) .flatMap(m -> m.getFieldValues() .entrySet() .stream() .filter(fv -> itemLinkFieldIds.contains(fv.getKey())) .flatMap(fv -> FieldDTO.deserializeStringToListOfStrings(fv.getValue()) .stream() .map(id -> new ItemKey(fieldsById.get(fv.getKey()).getItemTypeId(), id)))); ```...
I understand this is probably against the design philosophy, but I would like to get it confirmed if that is the case. It is generally considered to be a bette...
When trying to reformat code using the Google Java Format IntelliJ plugin, I get the following error: ``` Got unexpected exception during formatting PsiJavaFile:AccountCreationResult.java java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: No enum constant javax.lang.model.element.Modifier.SEALED...
Currently formatter ignores `//@formatter:off` and `:on` tags.