This is an automated email from the ASF dual-hosted git repository. nightowl888 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/lucenenet.git
commit 3b92a598d63cc5e705da41b9ed82e83bddba3e3f Author: Shad Storhaug <[email protected]> AuthorDate: Tue Jun 30 23:30:37 2020 +0700 Lucene.Net.Analysis.Tokenizer: Allow enabling "asserts" for testing --- src/Lucene.Net/Analysis/Tokenizer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Lucene.Net/Analysis/Tokenizer.cs b/src/Lucene.Net/Analysis/Tokenizer.cs index 9d9d67b..3587771 100644 --- a/src/Lucene.Net/Analysis/Tokenizer.cs +++ b/src/Lucene.Net/Analysis/Tokenizer.cs @@ -115,7 +115,7 @@ namespace Lucene.Net.Analysis throw new InvalidOperationException("TokenStream contract violation: Close() call missing"); } this.inputPending = input; - Debug.Assert(SetReaderTestPoint()); + if (Lucene.Net.Diagnostics.Debugging.AssertsEnabled) SetReaderTestPoint(); } public override void Reset()
