MCPcopy Create free account
hub / github.com/QuiltMC/chasm / testGenerics

Method testGenerics

chasm/src/testData/java/other/ExampleClass.java:59–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57 }
58
59 public static int testGenerics() throws ExecutionException, InterruptedException {
60 int output = CompletableFuture.supplyAsync(() -> 5)
61 .thenApply(i -> Integer.toString(i))
62 .thenAccept(System.out::println)
63 .thenApply(v -> 7)
64 .get();
65
66 switch (output) {
67 case 7:
68 output = 10;
69 // fall through
70 default:
71 output = 7;
72 }
73
74 return output;
75 }
76
77 public abstract void annotationTest(@SimpleAnnotation("first") String first,
78 @SimpleAnnotation("second") String second);

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected