mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
default methods: filter out defaults from anonymous completion (IDEA-98954)
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
interface Predicate<T> {
|
||||
public boolean test(T t);
|
||||
public default Predicate<T> and(Predicate<? super T> p) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public class Test1 {
|
||||
{
|
||||
Predicate p = new Predicate() {
|
||||
@Override
|
||||
public boolean test(Object o) {
|
||||
<selection>return false; //To change body of implemented methods use File | Settings | File Templates.</selection>
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
interface Predicate<T> {
|
||||
public boolean test(T t);
|
||||
public default Predicate<T> and(Predicate<? super T> p) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public class Test1 {
|
||||
{
|
||||
Predicate p = new Predic<caret>
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user