extract class: do not warn about usages of statics in class initializers, preserve static imports (IDEA-106017)

This commit is contained in:
anna
2013-04-23 16:53:58 +02:00
parent 1b0f032a13
commit 6100f5a690
8 changed files with 58 additions and 5 deletions
@@ -0,0 +1,7 @@
package foo;
public class Extracted {
public static <T> T foo() {
return null;
}
}
@@ -0,0 +1,3 @@
package foo;
class Test {
}
@@ -0,0 +1,8 @@
package foo;
import static foo.Extracted.foo;
class Usage {
{
foo();
}
}
@@ -0,0 +1,4 @@
package foo;
class Test {
public static <T> T foo() { return null; }
}
@@ -0,0 +1,8 @@
package foo;
import static foo.Test.foo;
class Usage {
{
foo();
}
}