Skip to content

Commit

Permalink
use new api to create predefined list
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandy committed Jul 4, 2022
1 parent caa9b07 commit b51bea0
Showing 1 changed file with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,14 @@

public class ContinuationEnhancer extends Enhancer {

static final List<String> continuationMethods = new ArrayList<>();

static {
continuationMethods.add("play.mvc.Controller.await(java.lang.String)");
continuationMethods.add("play.mvc.Controller.await(int)");
continuationMethods.add("play.mvc.Controller.await(java.util.concurrent.Future)");
continuationMethods.add("play.mvc.WebSocketController.await(java.lang.String)");
continuationMethods.add("play.mvc.WebSocketController.await(int)");
continuationMethods.add("play.mvc.WebSocketController.await(java.util.concurrent.Future)");
}
private static final List<String> continuationMethods = List.of(
"play.mvc.Controller.await(java.lang.String)",
"play.mvc.Controller.await(int)",
"play.mvc.Controller.await(java.util.concurrent.Future)",
"play.mvc.WebSocketController.await(java.lang.String)",
"play.mvc.WebSocketController.await(int)",
"play.mvc.WebSocketController.await(java.util.concurrent.Future)"
);

public static boolean isEnhanced(String appClassName) {
ApplicationClass appClass = Play.classes.getApplicationClass( appClassName);
Expand Down

0 comments on commit b51bea0

Please sign in to comment.