mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
functional expression can be folded quick fix should work in case of statement lambda
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
// "Replace with qualifier" "true"
|
||||
import java.util.function.Function;
|
||||
|
||||
class Test {
|
||||
void foo(Function<String, String> function) {
|
||||
Function<String, String> another = function;
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// "Replace with qualifier" "true"
|
||||
import java.util.function.Consumer;
|
||||
|
||||
class Test {
|
||||
void foo(Consumer<String> consumer) {
|
||||
Consumer<String> another = consumer;
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// "Replace with qualifier" "true"
|
||||
import java.util.function.Function;
|
||||
|
||||
class Test {
|
||||
void foo(Function<String, String> function) {
|
||||
Function<String, String> another = s -> {
|
||||
return function.ap<caret>ply(s);
|
||||
};
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// "Replace with qualifier" "true"
|
||||
import java.util.function.Consumer;
|
||||
|
||||
class Test {
|
||||
void foo(Consumer<String> consumer) {
|
||||
Consumer<String> another = s -> {
|
||||
consumer.acce<caret>pt(s);
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user