Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
youfanx committed Aug 1, 2024
1 parent a3c974e commit d7675a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions rxlib/src/main/java/org/rx/core/Reflects.java
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,7 @@ public static Map<String, Field> getFieldMap(Class<?> type) {
List<Field> all = FieldUtils.getAllFieldsList(type);
for (Field field : all) {
setAccess(field);
FieldUtils.removeFinalModifier(field);
}
return Collections.unmodifiableMap(Linq.from(all).toMap(Field::getName, p -> p));
});
Expand Down
3 changes: 2 additions & 1 deletion rxlib/src/main/java/org/rx/core/ThreadPool.java
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,8 @@ public T call() {
TraceHandler.INSTANCE.log(toString(), ex = e);
throw e;
} finally {
TraceHandler.INSTANCE.saveMethodTrace(fn.getClass(), Reflects.getStackTrace(Thread.currentThread()), new Object[]{id},
Thread t = Thread.currentThread();
TraceHandler.INSTANCE.saveMethodTrace(t, fn.getClass(), Reflects.getStackTrace(t), new Object[]{id},
r, ex, System.nanoTime() - s);
}
return r;
Expand Down

0 comments on commit d7675a8

Please sign in to comment.