ignore static imports for method references (IDEA-92590)

This commit is contained in:
anna
2012-10-08 18:45:54 +02:00
parent fe885e27c1
commit ada232f63e
4 changed files with 67 additions and 30 deletions

View File

@@ -0,0 +1,17 @@
// "Add on demand static import for 'java.util.Arrays'" "true"
package test;
import java.util.*;
import static java.util.Arrays.*;
public class Foo {
{
Block<Integer[]> b2 = Arrays::sort;
sort((byte[]) null);
}
public interface Block<T> {
void apply(T t);
}
}

View File

@@ -0,0 +1,15 @@
// "Add on demand static import for 'java.util.Arrays'" "true"
package test;
import java.util.*;
public class Foo {
{
Block<Integer[]> b2 = Arrays::sort;
Arra<caret>ys.sort((byte[])null);
}
public interface Block<T> {
void apply(T t);
}
}