History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-25312
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Normal Normal
Assignee: Bas Leijdekkers
Reporter: andrey belomutskiy
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

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

Created: 13 Mar 08 22:46   Updated: 17 Mar 08 10:52
Component/s: Editor. Error Highlighting
Fix Version/s: Diana 8243, Selena 7.0.4

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 7,757
Fixed in build: 8,230


 Description  « Hide
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



 All   Comments   Work Log   Change History      Sort Order:
Alexey Kudravtsev - 14 Mar 08 11:05
Could you please attach sample code here to help us to reproduce the problem?

andrey belomutskiy - 14 Mar 08 11:12
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 - 14 Mar 08 11:24
That was quick! Thank you Andrew.