mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
trivial method reference inspection (IDEA-123298)
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
// "Replace with qualifier" "true"
|
||||
import java.util.function.Predicate;
|
||||
|
||||
class Test {
|
||||
void foo(Predicate<String> p){
|
||||
Predicate<String> stringPredicate = p;
|
||||
}
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
// "Replace with qualifier" "true"
|
||||
import java.util.function.Predicate;
|
||||
|
||||
class Test implements Predicate<String> {
|
||||
void foo(){
|
||||
Predicate<String> stringPredicate = this;
|
||||
}
|
||||
|
||||
public boolean test(String s) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// "Replace with qualifier" "true"
|
||||
import java.util.function.Predicate;
|
||||
|
||||
class Test {
|
||||
void foo(Predicate<String> p){
|
||||
Predicate<String> stringPredicate = p::te<caret>st;
|
||||
}
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
// "Replace with qualifier" "true"
|
||||
import java.util.function.Predicate;
|
||||
|
||||
class Test implements Predicate<String> {
|
||||
void foo(){
|
||||
Predicate<String> stringPredicate = this::te<caret>st;
|
||||
}
|
||||
|
||||
public boolean test(String s) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user