Skip to content

Commit

Permalink
修正IDEA自动修正的BUG,导致编译无法通过
Browse files Browse the repository at this point in the history
  • Loading branch information
oldmanpushcart committed Jan 22, 2023
1 parent 8434bd8 commit 20f6fd9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Process {

// 调用堆栈
private final GaStack<Integer> stack
= new ThreadUnsafeGaStack<Integer>();
= new ThreadUnsafeGaStack<>();

// 是否需要忽略整个调用过程
private boolean isIgnoreProcess = false;
Expand Down Expand Up @@ -173,7 +173,7 @@ public void onEvent(Event event) throws Throwable {
final int listenerId;
final EventListener listener;
final Event.Type[] eventTypes;
final ThreadLocal<Process> processRef = ThreadLocal.withInitial(() -> new java.lang.Process());
final ThreadLocal<Process> processRef = ThreadLocal.withInitial(Process::new);

EventProcessor(final int listenerId,
final EventListener listener,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ public DefaultCoreLoadedClassDataSource(final Instrumentation inst,
@Override
public Set<Class<?>> list() {
final Set<Class<?>> classes = new LinkedHashSet<>();
Collections.addAll(classes, inst.getAllLoadedClasses());
for(final Class<?> clazz : inst.getAllLoadedClasses()) {
classes.add(clazz);
}
return classes;
}

Expand Down

0 comments on commit 20f6fd9

Please sign in to comment.