DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=36078>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=36078 Summary: [REFACTORING] FieldSortedHitQueue has too much duplicated code Product: Lucene Version: CVS Nightly - Specify date in submission Platform: All OS/Version: other Status: NEW Severity: minor Priority: P2 Component: Search AssignedTo: java-dev@lucene.apache.org ReportedBy: [EMAIL PROTECTED] There's 40LOC duplicated in FieldDocSortedHitQueue::lessThan just to handle the reverse sort. It would be more readable to actually do something like (YMMV): if (field.getReverse()) { c = -c; } -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]