You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2020/10/03 23:58:50 UTC

[lucenenet] 05/08: Lucene.Net.Util.DisposableThreadLocal: Added removal warning to Obsolete attribute instead of in comments

This is an automated email from the ASF dual-hosted git repository.

nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git

commit 34b7c575d25ca2174d2842b956ce1c0215ee132c
Author: Shad Storhaug <sh...@shadstorhaug.com>
AuthorDate: Sun Oct 4 02:59:24 2020 +0700

    Lucene.Net.Util.DisposableThreadLocal: Added removal warning to Obsolete attribute instead of in comments
---
 src/Lucene.Net/Util/CloseableThreadLocal.cs | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/Lucene.Net/Util/CloseableThreadLocal.cs b/src/Lucene.Net/Util/CloseableThreadLocal.cs
index b404f23..c394cb7 100644
--- a/src/Lucene.Net/Util/CloseableThreadLocal.cs
+++ b/src/Lucene.Net/Util/CloseableThreadLocal.cs
@@ -110,11 +110,11 @@ namespace Lucene.Net.Util
             }
         }
 
-        [Obsolete("Use Value instead.")]
-        public T Get() => Value; // LUCENENET TODO: API - Remove this before the 4.8.0 release
+        [Obsolete("Use Value instead. This method will be removed in 4.8.0 release candidate.")]
+        public T Get() => Value;
 
-        [Obsolete("Use Value instead.")]
-        public void Set(T value) => Value = value; // LUCENENET TODO: API - Remove this before the 4.8.0 release
+        [Obsolete("Use Value instead. This method will be removed in 4.8.0 release candidate.")]
+        public void Set(T value) => Value = value;
 
         /// <summary>
         /// Gets or sets the value of this instance for the current thread.