/*
 * Copyright (C) Lightbend Inc. <https://www.lightbend.com>
 */

package javaguide.akka.async;

// #async
import play.mvc.*;

import java.util.concurrent.CompletableFuture;
import java.util.concurrent.CompletionStage;

public class Application extends Controller {
  public CompletionStage<Result> index() {
    return CompletableFuture.supplyAsync(this::longComputation)
        .thenApply((Integer i) -> ok("Got " + i));
  }
  // ###skip: 1
  public int longComputation() {
    return 2;
  }
}
// #async

@@ -427,23 +427,8 @@
   %7D%0A
-  // ###skip: 1
 %0A  p

Update Application.java