On Monday 02 March 2009 15:16:53 [email protected] wrote:
> Author: j16sdiz
> Date: 2009-03-02 15:16:52 +0000 (Mon, 02 Mar 2009)
> New Revision: 25873
> 
> Added:
>    trunk/plugins/XMLLibrarian/Index.java
> Modified:
>    trunk/plugins/XMLLibrarian/URIWrapper.java
>    trunk/plugins/XMLLibrarian/XMLLibrarian.java
> Log:
> [2/3] Factor out Index class - Factor out the index routines
> 
> This new index routine use the new main index (index.xml) parser.
> 
> Note: This still use the old subindex (index_??.xml) parser.
> 
> Added: trunk/plugins/XMLLibrarian/Index.java
> ===================================================================
> --- trunk/plugins/XMLLibrarian/Index.java                             (rev 0)
> +++ trunk/plugins/XMLLibrarian/Index.java     2009-03-02 15:16:52 UTC (rev 
25873)
...
> +
> +     protected String getSubIndex(String keyword) {
> +             String md5 = XMLLibrarian.MD5(keyword);
> +             int idx = Collections.binarySearch(subIndiceList, md5);
> +             if (idx < 0)
> +                     idx = -idx - 2;
> +             return subIndice.get(subIndiceList.get(idx));

This will return the wrong subindex rather than no subindex sometimes.

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Devl mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl

Reply via email to