Skip to content

Instantly share code, notes, and snippets.

@Jacoby6000
Created November 10, 2017 21:40
Show Gist options
  • Save Jacoby6000/57f6c67866248ea76b26b2381e3055e6 to your computer and use it in GitHub Desktop.
Save Jacoby6000/57f6c67866248ea76b26b2381e3055e6 to your computer and use it in GitHub Desktop.
2.12
public class wot.DoIt {
public scala.collection.immutable.List<scala.Option<java.lang.Object>> foo(scala.collection.immutable.List<scala.Tuple2<java.lang.Object, scala.Option<java.lang.Object>>>);
Code:
0: aload_1
1: invokedynamic #39, 0 // InvokeDynamic #0:apply:()Lscala/Function1;
6: getstatic #45 // Field scala/collection/immutable/List$.MODULE$:Lscala/collection/immutable/List$;
9: invokevirtual #49 // Method scala/collection/immutable/List$.canBuildFrom:()Lscala/collection/generic/CanBuildFrom;
12: invokevirtual #55 // Method scala/collection/immutable/List.map:(Lscala/Function1;Lscala/collection/generic/CanBuildFrom;)Ljava/lang/Object;
15: checkcast #51 // class scala/collection/immutable/List
18: areturn
public scala.collection.immutable.List<scala.Option<java.lang.Object>> otherFoo(scala.collection.immutable.List<scala.Option<scala.Tuple2<java.lang.Object, java.lang.Object>>>);
Code:
0: aload_1
1: invokedynamic #66, 0 // InvokeDynamic #1:apply:()Lscala/Function1;
6: getstatic #45 // Field scala/collection/immutable/List$.MODULE$:Lscala/collection/immutable/List$;
9: invokevirtual #49 // Method scala/collection/immutable/List$.canBuildFrom:()Lscala/collection/generic/CanBuildFrom;
12: invokevirtual #55 // Method scala/collection/immutable/List.map:(Lscala/Function1;Lscala/collection/generic/CanBuildFrom;)Ljava/lang/Object;
15: checkcast #51 // class scala/collection/immutable/List
18: areturn
public static final int $anonfun$foo$2(int, int);
Code:
0: iload_0
1: iload_1
2: iadd
3: ireturn
public static final scala.Option $anonfun$foo$1(scala.Tuple2);
Code:
0: aload_0
1: astore_2
2: aload_2
3: ifnull 35
6: aload_2
7: invokevirtual #78 // Method scala/Tuple2._1$mcI$sp:()I
10: istore_3
11: aload_2
12: invokevirtual #82 // Method scala/Tuple2._2:()Ljava/lang/Object;
15: checkcast #84 // class scala/Option
18: astore 4
20: aload 4
22: iload_3
23: invokedynamic #94, 0 // InvokeDynamic #2:apply$mcII$sp:(I)Lscala/runtime/java8/JFunction1$mcII$sp;
28: invokevirtual #97 // Method scala/Option.map:(Lscala/Function1;)Lscala/Option;
31: astore_1
32: goto 47
35: goto 38
38: new #99 // class scala/MatchError
41: dup
42: aload_2
43: invokespecial #103 // Method scala/MatchError."<init>":(Ljava/lang/Object;)V
46: athrow
47: aload_1
48: areturn
public static final int $anonfun$otherFoo$2(scala.Tuple2);
Code:
0: aload_0
1: astore_2
2: aload_2
3: ifnull 25
6: aload_2
7: invokevirtual #78 // Method scala/Tuple2._1$mcI$sp:()I
10: istore_3
11: aload_2
12: invokevirtual #113 // Method scala/Tuple2._2$mcI$sp:()I
15: istore 4
17: iload_3
18: iload 4
20: iadd
21: istore_1
22: goto 37
25: goto 28
28: new #99 // class scala/MatchError
31: dup
32: aload_2
33: invokespecial #103 // Method scala/MatchError."<init>":(Ljava/lang/Object;)V
36: athrow
37: iload_1
38: ireturn
public static final scala.Option $anonfun$otherFoo$1(scala.Option);
Code:
0: aload_0
1: invokedynamic #121, 0 // InvokeDynamic #3:apply:()Lscala/Function1;
6: invokevirtual #97 // Method scala/Option.map:(Lscala/Function1;)Lscala/Option;
9: areturn
public wot.DoIt();
Code:
0: aload_0
1: invokespecial #124 // Method java/lang/Object."<init>":()V
4: return
public static final java.lang.Object $anonfun$otherFoo$2$adapted(scala.Tuple2);
Code:
0: aload_0
1: invokestatic #126 // Method $anonfun$otherFoo$2:(Lscala/Tuple2;)I
4: invokestatic #132 // Method scala/runtime/BoxesRunTime.boxToInteger:(I)Ljava/lang/Integer;
7: areturn
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment