Skip to content

Import order with upper case packages #105

Description

@borsaq

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();
    }
}

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions