mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-27 13:50:53 +07:00
13 lines
380 B
Java
13 lines
380 B
Java
// "Extract variable 'lc' to 'thenApply' operation" "true"
|
|
import java.util.concurrent.CompletableFuture;
|
|
|
|
public class Test {
|
|
public static void main(String[] args) {
|
|
CompletableFuture.completedFuture(" XYZ ")
|
|
.thenApply(x -> x.trim()+"|"+x.trim())
|
|
.thenAccept(s -> {
|
|
String <caret>lc = s.toLowerCase();
|
|
System.out.println(lc);
|
|
});
|
|
}
|
|
} |