Hi, Eclipse 3.0 has a nice warning (off by default) that let's you know if a method has an exception in its throws clause which the method can never throw. This happens in several places in Lucene, for example:
TokenStream: public void close() throws IOException {} CSInputStream: protected void seekInternal(long pos) throws IOException {} IndexReader: protected final void finalize() throws IOException {... Has this been done on purpose, for example so that the implementation can later be changed without adding that clause (and thus changing the API)? That's the only reason I can think of. If there's no reason for these exceptions, I'd like to remove them. Regards Daniel -- http://www.danielnaber.de --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]