lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From karl wettin <ka...@snigel.net>
Subject this == that
Date Sat, 29 Apr 2006 20:50:48 GMT
The code is filled with string equality code using == rather than  
equals(). I honestly don't think it saves a single clock tick as the  
JIT takes care of it when the first line of code in the equals method  
is if (this == that) return true;

Please correct me if I'm wrong.

I can commit to do the changes to the core code if it is considered  
interesting.

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


Mime
View raw message