lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apa...@lucene.com
Subject RE: why is document final
Date Thu, 11 Apr 2002 18:00:27 GMT
> From: Halácsy Péter
> 
> could someone explain why Document is final? 

Because it was not designed to be subclassed.

When I wrote Lucene I only made classes non-final that I expected end users
to need to subclass.  In the case of Document, this is perhaps overkill, but
I prefer to have folks try to first use Lucene the way it is intended.  This
results in fewer spurious bug reports.

Why do you need to subclass Document?

Doug

--
To unsubscribe, e-mail:   <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>


Mime
View raw message