mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
remove compiler
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,22 +0,0 @@
|
||||
package a;
|
||||
|
||||
import cn.hutool.core.lang.Console;
|
||||
import cn.hutool.core.lang.ConsoleTable;
|
||||
import cn.hutool.core.lang.caller.CallerUtil;
|
||||
|
||||
public class A {
|
||||
private class InnerClass {
|
||||
}
|
||||
|
||||
public A() {
|
||||
new InnerClass() {{
|
||||
int i = 0;
|
||||
Console.log("初始化 " + getClass() + " 的调用链为: ");
|
||||
Class<?> caller = CallerUtil.getCaller(i);
|
||||
while (caller != null) {
|
||||
Console.log("{} {}", caller, caller.getClassLoader());
|
||||
caller = CallerUtil.getCaller(++i);
|
||||
}
|
||||
}};
|
||||
}
|
||||
}
|
Binary file not shown.
@@ -1,8 +0,0 @@
|
||||
package b;
|
||||
import a.A;
|
||||
|
||||
public class B {
|
||||
public B() {
|
||||
new A();
|
||||
}
|
||||
}
|
Binary file not shown.
@@ -1,9 +0,0 @@
|
||||
package c;
|
||||
|
||||
import b.B;
|
||||
|
||||
public class C {
|
||||
public C() {
|
||||
new B();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user