Skip to content

Commit

Permalink
fix api limitations <java9
Browse files Browse the repository at this point in the history
  • Loading branch information
SylvainJuge committed May 27, 2024
1 parent 500b3bb commit 99b9076
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,7 @@ public void stop() throws Exception {
*/
private static String toString(ThreadInfo threadInfo) {
StringBuilder sb = new StringBuilder("\"" + threadInfo.getThreadName() + "\"" +
(threadInfo.isDaemon() ? " daemon" : "") +
" prio=" + threadInfo.getPriority() +
// note: daemon and priority now available < java9
" Id=" + threadInfo.getThreadId() + " " +
threadInfo.getThreadState());
if (threadInfo.getLockName() != null) {
Expand Down

0 comments on commit 99b9076

Please sign in to comment.