mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-19 10:20:56 +07:00
16 lines
359 B
Java
16 lines
359 B
Java
// "Make 'PrivateMethodRef.filter()' not static" "true-preview"
|
|
|
|
import java.util.function.Predicate;
|
|
|
|
class PrivateMethodRef {
|
|
static boolean filter(final String s) {
|
|
return false;
|
|
}
|
|
}
|
|
|
|
class Some {
|
|
public static void main(String[] args) {
|
|
PrivateMethodRef ref = new PrivateMethodRef();
|
|
Predicate<String> filter2 = ref::fi<caret>lter;
|
|
}
|
|
} |