You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by sy...@apache.org on 2015/05/09 20:43:47 UTC

[1/2] lucenenet git commit: don't wrap exceptions

Repository: lucenenet
Updated Branches:
  refs/heads/master 792dbad3e -> 95f358e9a


don't wrap exceptions


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

Branch: refs/heads/master
Commit: 66917a600c7760b72bf0b04ef2e81ef5d9fecc79
Parents: 792dbad
Author: Laimonas Simutis <la...@gmail.com>
Authored: Fri May 8 11:14:04 2015 -0400
Committer: Laimonas Simutis <la...@gmail.com>
Committed: Fri May 8 11:14:04 2015 -0400

----------------------------------------------------------------------
 src/Lucene.Net.Core/Util/IOUtils.cs | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/66917a60/src/Lucene.Net.Core/Util/IOUtils.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Util/IOUtils.cs b/src/Lucene.Net.Core/Util/IOUtils.cs
index 5fd50cb..e386a32 100644
--- a/src/Lucene.Net.Core/Util/IOUtils.cs
+++ b/src/Lucene.Net.Core/Util/IOUtils.cs
@@ -428,11 +428,7 @@ namespace Lucene.Net.Util
         {
             if (th != null)
             {
-                if (th is IOException || th is InvalidOperationException)
-                {
-                    throw th;
-                }
-                throw new Exception(th.ToString(), th);
+                throw th;
             }
         }
 


[2/2] lucenenet git commit: add Test attribute

Posted by sy...@apache.org.
add Test attribute


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

Branch: refs/heads/master
Commit: 95f358e9aa2b762176652b675ae3b7347b848242
Parents: 66917a6
Author: Laimonas Simutis <la...@gmail.com>
Authored: Fri May 8 11:17:40 2015 -0400
Committer: Laimonas Simutis <la...@gmail.com>
Committed: Fri May 8 11:17:40 2015 -0400

----------------------------------------------------------------------
 src/Lucene.Net.Tests/core/Index/TestIndexWriter.cs | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/95f358e9/src/Lucene.Net.Tests/core/Index/TestIndexWriter.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Index/TestIndexWriter.cs b/src/Lucene.Net.Tests/core/Index/TestIndexWriter.cs
index fe1387b..d5e3f80 100644
--- a/src/Lucene.Net.Tests/core/Index/TestIndexWriter.cs
+++ b/src/Lucene.Net.Tests/core/Index/TestIndexWriter.cs
@@ -81,6 +81,7 @@ namespace Lucene.Net.Index
     {
         private static readonly FieldType StoredTextType = new FieldType(TextField.TYPE_NOT_STORED);
 
+        [Test]
         public virtual void TestDocCount()
         {
             Directory dir = NewDirectory();