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