mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
18 lines
333 B
Java
18 lines
333 B
Java
// "Add on-demand static import for 'java.util.Arrays'" "true-preview"
|
|
package test;
|
|
|
|
import java.util.*;
|
|
|
|
import static java.util.Arrays.*;
|
|
|
|
public class Foo {
|
|
{
|
|
Block<Integer[]> b2 = Arrays::sort;
|
|
Block<Integer> bBroken = Arrays::sort;
|
|
sort((byte[])null);
|
|
}
|
|
|
|
public interface Block<T> {
|
|
void apply(T t);
|
|
}
|
|
} |