-
Notifications
You must be signed in to change notification settings - Fork 884
wildcard imports are not expanded #113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This is out of scope for a source code formatter. Note it would require access to your entire compilation classpath to work correctly. |
Fair enough, but are the unenforceable rules of https://google.github.io/styleguide/javaguide.html documented anywhere? For example checkstyle has this: http://checkstyle.sourceforge.net/google_style.html |
Hi @kevinb9n,
Documentation says that this plugin takes care of code formatting and import optimization:
So I would assume that imports are handled correctly according to the Google Code Style. Regars, Roman |
Oh, so this is why it breaks IntelliJ’s default import optimization, which would take care of this properly! |
Running
java -jar google-java-format-1.2-all-deps.jar Test.java
whereTest.java
containsresults in the following output:
but the expected output is:
The text was updated successfully, but these errors were encountered: