54 throw new RuntimeException();
55 }
56
57 @Override
58 public Pair_8160928<@NonNull Object, Object> next() {
59 Comparable<@NonNull Object> cble1 = (Comparable<@NonNull Object>) null;
60 return null;
61 }
62
63 @Override
64 public void remove() {
65 throw new UnsupportedOperationException();
66 }
67
68
69 @Target(ElementType.TYPE_USE)
70 public @interface NonNull {
71 };
72
73
74 // Expected output can't be directly encoded into NestedLambdasCastedTest !!!
75 static class OutputExpectedOnceHolder {
76 public String[] outputs = {
77 "0: #120(): CAST, offset=1, type_index=0, location=[TYPE_ARGUMENT(0)]",
78 "1: #120(): LOCAL_VARIABLE, {start_pc=5, length=2, index=1}, location=[TYPE_ARGUMENT(0)]",
79 };
80 }
81
82 static class OutputExpectedTwiceHolder {
83 public String[] outputs = {
84 "0: #120(): METHOD_RETURN, location=[TYPE_ARGUMENT(0)]",
85 };
86 }
87
88 public static strictfp void main(String args[]) throws Exception {
89 ToolBox tb = new ToolBox();
90 Path classPath = Paths.get(ToolBox.testClasses, "BridgeShouldHaveNoInteriorAnnotationsTest.class");
91 String javapOut = new JavapTask(tb)
92 .options("-v", "-p")
93 .classes(classPath.toString())
94 .run()
|
54 throw new RuntimeException();
55 }
56
57 @Override
58 public Pair_8160928<@NonNull Object, Object> next() {
59 Comparable<@NonNull Object> cble1 = (Comparable<@NonNull Object>) null;
60 return null;
61 }
62
63 @Override
64 public void remove() {
65 throw new UnsupportedOperationException();
66 }
67
68
69 @Target(ElementType.TYPE_USE)
70 public @interface NonNull {
71 };
72
73
74 // Expected output can't be directly encoded into BridgeShouldHaveNoInteriorAnnotationsTest !!!
75 static class OutputExpectedOnceHolder {
76 public String[] outputs = {
77 "0: #120(): CAST, offset=1, type_index=0, location=[TYPE_ARGUMENT(0)]",
78 "1: #120(): LOCAL_VARIABLE, {start_pc=5, length=2, index=1}, location=[TYPE_ARGUMENT(0)]",
79 };
80 }
81
82 static class OutputExpectedTwiceHolder {
83 public String[] outputs = {
84 "0: #120(): METHOD_RETURN, location=[TYPE_ARGUMENT(0)]",
85 };
86 }
87
88 public static strictfp void main(String args[]) throws Exception {
89 ToolBox tb = new ToolBox();
90 Path classPath = Paths.get(ToolBox.testClasses, "BridgeShouldHaveNoInteriorAnnotationsTest.class");
91 String javapOut = new JavapTask(tb)
92 .options("-v", "-p")
93 .classes(classPath.toString())
94 .run()
|