Skip to content
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

Import order with upper case packages #105

Closed
borsaq opened this issue Jul 12, 2016 · 4 comments
Closed

Import order with upper case packages #105

borsaq opened this issue Jul 12, 2016 · 4 comments

Comments

@borsaq
Copy link

borsaq commented Jul 12, 2016

Given a package structure like this:

./importorder/example
./importorder/example/root
./importorder/example/root/BFoo.java
./importorder/example/root/A
./importorder/example/root/A/AFoo.java
./importorder/example/root/CFoo.java
./importorder/example/Main.java

Eclipse Mars.2 Release (4.5.2) formats Main.java like this:

package importorder.example;

import importorder.example.root.BFoo;
import importorder.example.root.CFoo;
import importorder.example.root.A.AFoo;

public class Main
{
    public static void main(String[] args)
    {
        new AFoo();
        new BFoo();
        new CFoo();
    }
}

IntelliJ IDEA 2016.1.3 with Eclipse Code Formatter 15.7.132.637.2, like this:

package importorder.example;

import importorder.example.root.A.AFoo;
import importorder.example.root.BFoo;
import importorder.example.root.CFoo;

public class Main
{
    public static void main(String[] args)
    {
        new AFoo();
        new BFoo();
        new CFoo();
    }
}

@krasa
Copy link
Owner

krasa commented Jul 12, 2016

What is your import order setings? can you upload your example?

@borsaq
Copy link
Author

borsaq commented Jul 12, 2016

I have import order specified in a file that contains this:

#Organize Import Order
#Tue May 03 11:15:04 CEST 2016
3=com
2=org
1=javax
0=java

I'll attach the example project here.
import-order-example.tar.gz

@krasa krasa closed this as completed in 76426ef Jul 12, 2016
@krasa
Copy link
Owner

krasa commented Jul 12, 2016

@borsaq
Copy link
Author

borsaq commented Jul 13, 2016

Tested and works on the real problem project too. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants