Lucene.Net.Util.DisposableThreadLocal: Added removal warning to Obsolete attribute instead of in comments
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 @@
}
}
- [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.