Skip to content

Commit

Permalink
handle review comments
Browse files Browse the repository at this point in the history
Signed-off-by: Ludovic Orban <[email protected]>
  • Loading branch information
lorban committed Dec 12, 2023
1 parent 5083669 commit e571a97
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -707,9 +707,7 @@ public void free()
@Override
public String toString()
{
ConcurrentEntry<P> weakEntry = _weak.get();
ConcurrentEntry<P> strongEntry = _strong;
return "%s@%x{w=%s,s=%s,e=%s}".formatted(this.getClass().getSimpleName(), hashCode(), weakEntry == null ? "null" : "non-null", strongEntry == null ? "null" : "non-null", weakEntry);
return "%s@%x{%s,%s}".formatted(this.getClass().getSimpleName(), hashCode(), _strong == null ? "acquired" : "idle", _weak.get());
}
}
}

0 comments on commit e571a97

Please sign in to comment.