lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [35/50] [abbrv] lucenenet git commit: Lucene.Net.Misc: Fixed all compiler warnings.
Date Sun, 02 Oct 2016 14:35:53 GMT
Lucene.Net.Misc: Fixed all compiler warnings.


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

Branch: refs/heads/master
Commit: de597e0ecaf2e6e09fcf1eed2bd92949c6bf1468
Parents: f143395
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Mon Sep 19 00:14:49 2016 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Sun Oct 2 17:44:59 2016 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Misc/Index/MultiPassIndexSplitter.cs    | 2 ++
 src/Lucene.Net.Misc/Misc/IndexMergeTool.cs             | 2 ++
 src/Lucene.Net.Tests.Misc/Document/TestLazyDocument.cs | 2 +-
 3 files changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/de597e0e/src/Lucene.Net.Misc/Index/MultiPassIndexSplitter.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Misc/Index/MultiPassIndexSplitter.cs b/src/Lucene.Net.Misc/Index/MultiPassIndexSplitter.cs
index e3a91ec..0e4e346 100644
--- a/src/Lucene.Net.Misc/Index/MultiPassIndexSplitter.cs
+++ b/src/Lucene.Net.Misc/Index/MultiPassIndexSplitter.cs
@@ -205,7 +205,9 @@ namespace Lucene.Net.Index
             {
                 input = new MultiReader(indexes.ToArray());
             }
+#pragma warning disable 612, 618
             splitter.Split(LuceneVersion.LUCENE_CURRENT, input, dirs, seq);
+#pragma warning restore 612, 618
         }
 
         /// <summary>

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/de597e0e/src/Lucene.Net.Misc/Misc/IndexMergeTool.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Misc/Misc/IndexMergeTool.cs b/src/Lucene.Net.Misc/Misc/IndexMergeTool.cs
index 2000fc3..d9cfa9e 100644
--- a/src/Lucene.Net.Misc/Misc/IndexMergeTool.cs
+++ b/src/Lucene.Net.Misc/Misc/IndexMergeTool.cs
@@ -37,8 +37,10 @@ namespace Lucene.Net.Misc
             }
             FSDirectory mergedIndex = FSDirectory.Open(new System.IO.DirectoryInfo(args[0]));
 
+#pragma warning disable 612, 618
             using (IndexWriter writer = new IndexWriter(mergedIndex, new IndexWriterConfig(LuceneVersion.LUCENE_CURRENT,
null)
                .SetOpenMode(IndexWriterConfig.OpenMode_e.CREATE)))
+#pragma warning restore 612, 618
             {
 
                 Directory[] indexes = new Directory[args.Length - 1];

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/de597e0e/src/Lucene.Net.Tests.Misc/Document/TestLazyDocument.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Misc/Document/TestLazyDocument.cs b/src/Lucene.Net.Tests.Misc/Document/TestLazyDocument.cs
index cae3683..8e110a2 100644
--- a/src/Lucene.Net.Tests.Misc/Document/TestLazyDocument.cs
+++ b/src/Lucene.Net.Tests.Misc/Document/TestLazyDocument.cs
@@ -30,7 +30,7 @@ namespace Lucene.Net.Documents
                     dir.Dispose();
                     dir = null;
                 }
-                catch (Exception e) { /* NOOP */ }
+                catch (Exception /*e*/) { /* NOOP */ }
             }
         }
 


Mime
View raw message