lucene-lucene-net-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "George Aroush (JIRA)" <j...@apache.org>
Subject [jira] Closed: (LUCENENET-35) Tokenizer.Close should check if input is null
Date Sat, 10 Mar 2007 16:24:10 GMT

     [ https://issues.apache.org/jira/browse/LUCENENET-35?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

George Aroush closed LUCENENET-35.
----------------------------------


> 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
>         Assigned To: George Aroush
>            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