Skip to content

Fix organize imports for indirect static-star imports #840

@eric-milles

Description

@eric-milles

Consider the following:

package foo
class Bar {
  boolean isOne() {}
}
class Baz extends Bar {
  boolean isTwo() {}
}
import static foo.Bar.isOne
import static foo.Bar.*
import static foo.Baz.*

isOne()
isTwo()
one
two

The later source unit can have its import statements reduced to just "import static foo.Baz.*" because it covers all other static imports.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions