Skip to content

Organize Imports drops import for same-unit inner class #1566

@eric-milles

Description

@eric-milles

Consider the following:

import B.C
class A {
  C c // any reference to C will do
}
class B {
  C c
  static class C {
  }
}

Organize Imports (Ctrl+Shift+O) removes the import statement and this in turn causes the reference to C within B to be unresolved.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions