lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Naber <daniel.na...@t-online.de>
Subject bitwise OR in BooleanScorer
Date Sat, 14 Aug 2004 15:15:06 GMT
Hi,

BooleanScorer's next() method uses a bitwise OR in a while loop:

...} while (bucketTable.first != null | more);

Is there any reason for this, couldn't this just be || ? BTW, I found this 
with FindBugs (http://findbugs.sourceforge.net/), which takes a jar files 
and gives some useful warnings about potential bugs.

Regards
 Daniel

-- 
http://www.danielnaber.de

---------------------------------------------------------------------
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