forbid default package classes in static imports (IDEA-26971 )

This commit is contained in:
anna
2011-08-22 17:56:03 +02:00
parent 507e4efb93
commit e23fd301ad
3 changed files with 19 additions and 0 deletions
@@ -0,0 +1,11 @@
import static <error descr="Cannot resolve symbol 'MyConstants'">MyConstants</error>.*;
public class MyClient
{
private int field = MyConstants.CONSTANT;
}
class MyConstants
{
public static final int CONSTANT = 1;
}