Skip to content

Commit

Permalink
Replace Thread.currentThread().getId() with Thread.currentThread().th…
Browse files Browse the repository at this point in the history
…readId()
  • Loading branch information
AnirvanSarkar committed Feb 27, 2024
1 parent df3707d commit 307f425
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ public void addMessage(String message) {
}
pulseData.message
.append("T")
.append(Thread.currentThread().getId())
.append(Thread.currentThread().threadId())
.append(" : ")
.append(message)
.append("\n");
Expand Down Expand Up @@ -315,7 +315,7 @@ public void newPhase(String name) {
if (pulseData != null) {
pulseData.message
.append("T")
.append(Thread.currentThread().getId())
.append(Thread.currentThread().threadId())
.append(" (").append((curPhase.phaseStart-pulseData.startTime)/1000000L)
.append(" +").append((curTime - curPhase.phaseStart)/1000000L).append("ms): ")
.append(curPhase.phaseName)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ private static boolean isDebug()
private static void mlog(String msg) {
if (log.isLoggable(Level.FINE)) {
log.fine("PID:" + Long.toHexString(PID)
+ " TID:" + Thread.currentThread().getId()
+ " TID:" + Thread.currentThread().threadId()
+ "(" + Thread.currentThread().getName() + ") "
+ msg);
}
Expand Down

0 comments on commit 307f425

Please sign in to comment.