lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent DARON (JIRA)" <j...@apache.org>
Subject [jira] Created: (LUCENENET-35) Tokenizer.Close should check if input is null
Date Thu, 01 Mar 2007 10:11:50 GMT
Tokenizer.Close should check if input is null
---------------------------------------------

                 Key: LUCENENET-35
                 URL: https://issues.apache.org/jira/browse/LUCENENET-35
             Project: Lucene.Net
          Issue Type: Improvement
            Reporter: Vincent DARON
            Priority: Trivial



Tokenizer default constructor create an instance with input set to null. So, the close method
should check input before closing it.

The other idea could be disallow that constructor...

		/// <summary>By default, closes the input Reader. </summary>
		public override void  Close()
		{
+                        if(input != null)
	         		input.Close();
		}


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message