Skip to content

Organize imports does not retain type import used to disambiguate multiple star imports #647

@eric-milles

Description

@eric-milles

Consider the following:

import java.sql.*
import java.util.*
import java.sql.Date

Date date

Executing Organize Imports (Ctrl+Shift+O) removes import java.sql.Date, which is necessary to disambiguate the name Date within the compilation unit.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions