Priority
Normal
Type
Bug 
State
Fixed 
Assignee
Bas Leijdekkers 
Subsystem
Editor. Error Highlighting 
Affected versions
Fixed in
Fixed in build
Next build 
Build
7757
Fixed in build
8230
  • Submitted by   andrey belomutskiy
    22 months ago (13 Mar 2008 22:46)
  • Updated by   root
    3 weeks ago (17 Jan 2010 19:58)
  • Jira: IDEA-43213
    (history, comments)

IDEA-43213

wrong "unndeeded import static name.innerr.clazz" detection

0
i have an inner static class which is used from another package - but instead of a regular import "import static" is used

this "import static" is yellowed as "uneeded" with "remove" action, but removing this line makes my code red - non-static import is required


Issue was resolved
Comments (3)
 
History (1)
 
Links
 
Alexey Kudravtsev
  Alexey Kudravtsev
14 Mar 2008 11:05
(22 months ago)
#permalink
Could you please attach sample code here to help us to reproduce the problem?
andrey belomutskiy
  andrey belomutskiy
14 Mar 2008 11:12
(22 months ago)
#permalink
package com.devexperts.tos.ui.user.centrals;

public class HistoricalFullQuoteCentral {
public static class HistoricalQuoteKey {

}
}

===========

package com.devexperts.tos.ui.user.centrals;
import java.util.Collection;
import java.util.Collections;
import static com.devexperts.tos.ui.user.centrals.HistoricalFullQuoteCentral.HistoricalQuoteKey;
public class test {
private Collection<HistoricalQuoteKey> subscription = Collections.emptyList();
}
Alexey Kudravtsev
  Alexey Kudravtsev
14 Mar 2008 11:24
(22 months ago)
#permalink
That was quick! Thank you Andrew.