From e6b3e5f707a1b3c90219e7441fda4a471b44402f Mon Sep 17 00:00:00 2001 From: lilgreenbird Date: Tue, 26 Mar 2024 14:41:38 -0700 Subject: [PATCH] comments updates --- .../com/microsoft/sqlserver/jdbc/ActivityCorrelator.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/microsoft/sqlserver/jdbc/ActivityCorrelator.java b/src/main/java/com/microsoft/sqlserver/jdbc/ActivityCorrelator.java index b50a18276..072d34f51 100644 --- a/src/main/java/com/microsoft/sqlserver/jdbc/ActivityCorrelator.java +++ b/src/main/java/com/microsoft/sqlserver/jdbc/ActivityCorrelator.java @@ -11,14 +11,14 @@ /** - * ActivityCorrelator provides the APIs to access the ActivityId in TLS + * ActivityCorrelator provides the APIs to access the ActivityId in a map */ final class ActivityCorrelator { private static Map activityIdMap = new ConcurrentHashMap(); static ActivityId getCurrent() { - // get the value in TLS, not reference + // get the value, not reference @SuppressWarnings("deprecation") long uniqueThreadId = Thread.currentThread().getId(); @@ -30,7 +30,7 @@ static ActivityId getCurrent() { return activityIdMap.get(uniqueThreadId); } - // Increment the Sequence number of the ActivityId in TLS + // Increment the Sequence number of the ActivityId // and return the ActivityId with new Sequence number static ActivityId getNext() { return getCurrent().getIncrement();