mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 02:38:59 +07:00
ignore static imports for method references (IDEA-92590)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user