lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [41/50] [abbrv] lucenenet git commit: Lucene.Net.Codecs: suppressed obsolete warnings
Date Wed, 25 Jan 2017 03:44:25 GMT
Lucene.Net.Codecs: suppressed obsolete warnings


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

Branch: refs/heads/api-work
Commit: 0df5a83e18599e8ad9c78eabee7e7718279a0bad
Parents: dcb41d8
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Wed Jan 25 07:31:00 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Wed Jan 25 09:34:49 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Codecs/Appending/AppendingPostingsFormat.cs  | 2 ++
 src/Lucene.Net.Codecs/Bloom/BloomFilteringPostingsFormat.cs | 4 +++-
 src/Lucene.Net.Codecs/Memory/DirectDocValuesProducer.cs     | 2 ++
 src/Lucene.Net.Codecs/Memory/FSTOrdTermsReader.cs           | 2 ++
 src/Lucene.Net.Codecs/Memory/MemoryDocValuesProducer.cs     | 2 ++
 5 files changed, 11 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0df5a83e/src/Lucene.Net.Codecs/Appending/AppendingPostingsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Codecs/Appending/AppendingPostingsFormat.cs b/src/Lucene.Net.Codecs/Appending/AppendingPostingsFormat.cs
index ff427dc..3270383 100644
--- a/src/Lucene.Net.Codecs/Appending/AppendingPostingsFormat.cs
+++ b/src/Lucene.Net.Codecs/Appending/AppendingPostingsFormat.cs
@@ -38,6 +38,7 @@ namespace Lucene.Net.Codecs.Appending
 
         public override FieldsProducer FieldsProducer(SegmentReadState state)
         {
+#pragma warning disable 612, 618
             using (var postings = new Lucene40PostingsReader(state.Directory, state.FieldInfos,
                 state.SegmentInfo,
                 state.Context, state.SegmentSuffix))
@@ -53,6 +54,7 @@ namespace Lucene.Net.Codecs.Appending
 
                 return ret;
             }
+#pragma warning restore 612, 618
         }
     }
 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0df5a83e/src/Lucene.Net.Codecs/Bloom/BloomFilteringPostingsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Codecs/Bloom/BloomFilteringPostingsFormat.cs b/src/Lucene.Net.Codecs/Bloom/BloomFilteringPostingsFormat.cs
index facbf59..94e3f0e 100644
--- a/src/Lucene.Net.Codecs/Bloom/BloomFilteringPostingsFormat.cs
+++ b/src/Lucene.Net.Codecs/Bloom/BloomFilteringPostingsFormat.cs
@@ -162,9 +162,11 @@ namespace Lucene.Net.Codecs.Bloom
                     }
                     else
                     {
+#pragma warning disable 612, 618
                         CodecUtil.CheckEOF(bloomIn);
+#pragma warning restore 612, 618
                     }
-                    
+
                     IOUtils.Close(bloomIn);
                     success = true;
                 }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0df5a83e/src/Lucene.Net.Codecs/Memory/DirectDocValuesProducer.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Codecs/Memory/DirectDocValuesProducer.cs b/src/Lucene.Net.Codecs/Memory/DirectDocValuesProducer.cs
index 2e41329..4cddc93 100644
--- a/src/Lucene.Net.Codecs/Memory/DirectDocValuesProducer.cs
+++ b/src/Lucene.Net.Codecs/Memory/DirectDocValuesProducer.cs
@@ -78,7 +78,9 @@ namespace Lucene.Net.Codecs.Memory
                 }
                 else
                 {
+#pragma warning disable 612, 618
                     CodecUtil.CheckEOF(@in);
+#pragma warning restore 612, 618
                 }
                 success = true;
             }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0df5a83e/src/Lucene.Net.Codecs/Memory/FSTOrdTermsReader.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Codecs/Memory/FSTOrdTermsReader.cs b/src/Lucene.Net.Codecs/Memory/FSTOrdTermsReader.cs
index bd369f1..9e60be7 100644
--- a/src/Lucene.Net.Codecs/Memory/FSTOrdTermsReader.cs
+++ b/src/Lucene.Net.Codecs/Memory/FSTOrdTermsReader.cs
@@ -97,7 +97,9 @@ namespace Lucene.Net.Codecs.Memory
                 }
                 else
                 {
+#pragma warning disable 612, 618
                     CodecUtil.CheckEOF(indexIn);
+#pragma warning restore 612, 618
                 }
                 success = true;
             }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0df5a83e/src/Lucene.Net.Codecs/Memory/MemoryDocValuesProducer.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Codecs/Memory/MemoryDocValuesProducer.cs b/src/Lucene.Net.Codecs/Memory/MemoryDocValuesProducer.cs
index eaaf884..2f9b219 100644
--- a/src/Lucene.Net.Codecs/Memory/MemoryDocValuesProducer.cs
+++ b/src/Lucene.Net.Codecs/Memory/MemoryDocValuesProducer.cs
@@ -91,7 +91,9 @@ namespace Lucene.Net.Codecs.Memory
                 }
                 else
                 {
+#pragma warning disable 612, 618
                     CodecUtil.CheckEOF(@in);
+#pragma warning restore 612, 618
                 }
                 ramBytesUsed = new AtomicLong(RamUsageEstimator.ShallowSizeOfInstance(this.GetType()));
                 success = true;


Mime
View raw message