Skip to content

Fix organize imports for inner class of super class #1184

@eric-milles

Description

@eric-milles

Consider the following:

package p
import p.A.B

abstract class A {
  protected static class B {
  }
}

class C extends A {
  def m(B b) {
  }
}

The import statement is not required to resolve reference to B from class C. Organize Imports (Ctrl+Shift+O) is not removing the extra import.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions