Skip to content

Organize imports drops static imports for default-package types #1244

@eric-milles

Description

@eric-milles

Consider the following:

import static J.f
import static J.m
print f
m()

J.java:

class J {
  static Object f
  static void m() {}
}

Organize Imports action will remove the imports for the default-package type "J", breaking the resolution of "f" and "m".

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions