lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [06/47] lucenenet git commit: Fixed bug in Codecs.SimpleText.SimpleTextStoredFieldsWriter.Dispose(): if disposing, should dispose, not return.
Date Tue, 11 Oct 2016 18:34:51 GMT
Fixed bug in Codecs.SimpleText.SimpleTextStoredFieldsWriter.Dispose(): if disposing, should
dispose, not return.


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

Branch: refs/heads/master
Commit: 9a1fa379631dc05d913da8e20f7724f1740e00e6
Parents: 4ec42c4
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Thu Oct 6 23:20:01 2016 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Sat Oct 8 17:15:40 2016 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Codecs/SimpleText/SimpleTextStoredFieldsWriter.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/9a1fa379/src/Lucene.Net.Codecs/SimpleText/SimpleTextStoredFieldsWriter.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Codecs/SimpleText/SimpleTextStoredFieldsWriter.cs b/src/Lucene.Net.Codecs/SimpleText/SimpleTextStoredFieldsWriter.cs
index 396de05..7f0fb50 100644
--- a/src/Lucene.Net.Codecs/SimpleText/SimpleTextStoredFieldsWriter.cs
+++ b/src/Lucene.Net.Codecs/SimpleText/SimpleTextStoredFieldsWriter.cs
@@ -209,7 +209,7 @@ namespace Lucene.Net.Codecs.SimpleText
 
 	    protected override void Dispose(bool disposing)
 	    {
-	        if (disposing) return;
+	        if (!disposing) return;
 	        try
 	        {
 	            IOUtils.Close(_output);


Mime
View raw message