@@ -52,16 +52,14 @@ public <B> Trampoline<B> bind(final F<A, Trampoline<B>> f) {
5252 // The resumption of a Codense is the resumption of its subcomputation. If that computation is done, its result
5353 // gets shifted into the continuation.
5454 public Either <P1 <Trampoline <A >>, A > resume () {
55- return left (sub .resume ().either (p -> {
56- return p .map (ot -> {
57- // WARNING: In JDK 8, update 25 (current version) the following code is a
58- // workaround for an internal JDK compiler error, likely due to
59- // https:bugs.openjdk.java.net/browse/JDK-8062253.
60- F <Normal <Object >, Trampoline <A >> f = o -> o .foldNormal (cont ::f , t -> t ._1 ().bind (cont ));
61- F <Codense <Object >, Trampoline <A >> g = c -> codense (c .sub , o -> c .cont .f (o ).bind (cont ));
62- return ot .fold (f , g );
63- });
64- }, o -> P .lazy (() -> cont .f (o ))));
55+ return left (sub .resume ().either (p -> p .map (ot -> {
56+ // WARNING: In JDK 8, update 25 (current version) the following code is a
57+ // workaround for an internal JDK compiler error, likely due to
58+ // https:bugs.openjdk.java.net/browse/JDK-8062253.
59+ F <Normal <Object >, Trampoline <A >> f = o -> o .foldNormal (cont ::f , t -> t ._1 ().bind (cont ));
60+ F <Codense <Object >, Trampoline <A >> g = c -> codense (c .sub , o -> c .cont .f (o ).bind (cont ));
61+ return ot .fold (f , g );
62+ }), o -> P .lazy (() -> cont .f (o ))));
6563 }
6664 }
6765
0 commit comments