lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Goetz <br...@quiotix.com>
Subject Re: Question about PorterStemFilter class
Date Thu, 04 Nov 2004 04:16:26 GMT
The original (Porter) version did indeed not correspond to any current 
Java coding standards -- because (a) it was translated to Java before 
such standards emerged (JDK 1.0) and (b) translated from another 
language.  I left these as is, rather than attempt to clean them up.

> Yes, I understand that. In looking at the code it is quite obviously
> of the same origin (i.e. from Martin Porter) but may be an older
> version (I couldn't quite tell). It doesn't come close to any normal
> Java programming guidelines, and while I didn't try to modify the
> latest version so that it would, entirely, because part of the
> reason I think whoever wrote the original code formatted it the way
> they did was to enable an easier reading of the comparison strings.
> I've tried to come to some compromise, as well as (as I mentioned)
> predeclaring the Strings so that the VM isn't constantly recreating
> them.


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org


Mime
View raw message