Format stack map table attribute
This commit is contained in:
parent
a451327a6a
commit
3a5fd90d14
2 changed files with 149 additions and 7 deletions
|
|
@ -1,18 +1,26 @@
|
|||
import java.util.function.Supplier;
|
||||
|
||||
@CustomAttribute
|
||||
public class Main implements Runnable, Supplier<Integer>, Interface {
|
||||
private static final String name = "John";
|
||||
private static final int number = 42;
|
||||
private static final double funnyNumber = 6.9;
|
||||
|
||||
public static void main() {
|
||||
new Main().sayHello();
|
||||
public static void main(String[] args) {
|
||||
final var main = new Main();
|
||||
main.sayHello();
|
||||
|
||||
try {
|
||||
main.throwSomething();
|
||||
} catch (Throwable e) {
|
||||
System.err.println("Caught " + e.getMessage());
|
||||
} finally {
|
||||
System.err.println("Finally block");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
Main.main();
|
||||
Main.main(new String[] { "Hello" });
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -38,4 +46,3 @@ public class Main implements Runnable, Supplier<Integer>, Interface {
|
|||
private static final String name = "Inner John";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue