Skip to content

Commit

Permalink
change order of null check
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbae committed Apr 9, 2019
1 parent db78f8c commit a0e37aa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ final class ActivityCorrelator {

static void cleanupActivityId() {
// remove ActivityIds that belongs to this thread or no longer have an associated thread.
activityIdTlsMap.entrySet().removeIf(e -> e.getValue() == null || e.getValue().getThread() == null
activityIdTlsMap.entrySet().removeIf(e -> null == e.getValue() || null == e.getValue().getThread()
|| e.getValue().getThread() == Thread.currentThread() || !e.getValue().getThread().isAlive());
}

Expand Down

0 comments on commit a0e37aa

Please sign in to comment.