lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [01/38] lucenenet git commit: Lucene.Net.Document.Field: Added Obsolete attribute to extension methods that use Obsolete enumerations, since they will be removed in 6.0.
Date Thu, 22 Jun 2017 05:25:02 GMT
Repository: lucenenet
Updated Branches:
  refs/heads/master 666de32b0 -> 468199e3f


Lucene.Net.Document.Field: Added Obsolete attribute to extension methods that use Obsolete
enumerations, since they will be removed in 6.0.


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/26630034
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/26630034
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/26630034

Branch: refs/heads/master
Commit: 26630034706dd713fe773ddc847b51ecf0e1d33c
Parents: 666de32
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Tue Jun 13 03:11:45 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Tue Jun 13 03:11:45 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net/Document/Field.cs | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/26630034/src/Lucene.Net/Document/Field.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Document/Field.cs b/src/Lucene.Net/Document/Field.cs
index 54fe113..8d85c80 100644
--- a/src/Lucene.Net/Document/Field.cs
+++ b/src/Lucene.Net/Document/Field.cs
@@ -1040,7 +1040,7 @@ namespace Lucene.Net.Documents
             }
         }
 
-#pragma warning disable 612, 618
+        [Obsolete("This is here only to ease transition from the pre-4.0 APIs.")]
         public static bool IsIndexed(this Field.Index index)
         {
             switch (index)
@@ -1059,6 +1059,7 @@ namespace Lucene.Net.Documents
             }
         }
 
+        [Obsolete("This is here only to ease transition from the pre-4.0 APIs.")]
         public static bool IsAnalyzed(this Field.Index index)
         {
             switch (index)
@@ -1077,6 +1078,7 @@ namespace Lucene.Net.Documents
             }
         }
 
+        [Obsolete("This is here only to ease transition from the pre-4.0 APIs.")]
         public static bool OmitNorms(this Field.Index index)
         {
             switch (index)
@@ -1095,6 +1097,7 @@ namespace Lucene.Net.Documents
             }
         }
 
+        [Obsolete("This is here only to ease transition from the pre-4.0 APIs.")]
         public static bool IsStored(this Field.TermVector tv)
         {
             switch (tv)
@@ -1113,6 +1116,7 @@ namespace Lucene.Net.Documents
             }
         }
 
+        [Obsolete("This is here only to ease transition from the pre-4.0 APIs.")]
         public static bool WithPositions(this Field.TermVector tv)
         {
             switch (tv)
@@ -1131,6 +1135,7 @@ namespace Lucene.Net.Documents
             }
         }
 
+        [Obsolete("This is here only to ease transition from the pre-4.0 APIs.")]
         public static bool WithOffsets(this Field.TermVector tv)
         {
             switch (tv)
@@ -1149,12 +1154,14 @@ namespace Lucene.Net.Documents
             }
         }
 
+        [Obsolete("This is here only to ease transition from the pre-4.0 APIs.")]
         public static Field.Index ToIndex(bool indexed, bool analyed)
         {
             return ToIndex(indexed, analyed, false);
         }
 
-        public static Field.Index ToIndex(bool indexed, bool analyzed, bool omitNorms)
+        [Obsolete("This is here only to ease transition from the pre-4.0 APIs.")]
+        public static Field.Index ToIndex(bool indexed, bool analyzed, bool omitNorms) 
         {
             // If it is not indexed nothing else matters
             if (!indexed)
@@ -1183,6 +1190,7 @@ namespace Lucene.Net.Documents
         /// <summary>
         /// Get the best representation of a TermVector given the flags.
         /// </summary>
+        [Obsolete("This is here only to ease transition from the pre-4.0 APIs.")]
         public static Field.TermVector ToTermVector(bool stored, bool withOffsets, bool withPositions)
         {
             // If it is not stored, nothing else matters.
@@ -1206,6 +1214,5 @@ namespace Lucene.Net.Documents
             }
             return Field.TermVector.YES;
         }
-#pragma warning restore 612, 618
     }
 }
\ No newline at end of file


Mime
View raw message