Skip to content

Commit

Permalink
Compare numbers with equals() instead of ==
Browse files Browse the repository at this point in the history
  • Loading branch information
dk2k committed Aug 22, 2024
1 parent 0ca4ed0 commit 878963d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ private void logLongRunningExecutions() {
final Thread thread = entry.getKey();
final String stackTrace = Arrays.stream(thread.getStackTrace()).map(Object::toString).collect(Collectors.joining("\n"));
final Thread.State threadState = thread.getState();
if (blockedSinceInNanos == registry.get(thread)) {
if (blockedSinceInNanos.equals(registry.get(thread))) {
logger.warn(
"Potentially blocked execution on network thread [{}] [{}] [{} milliseconds]: \n{}",
thread.getName(),
Expand Down

0 comments on commit 878963d

Please sign in to comment.