On Monday 02 March 2009 15:16:53 j16sdiz at freenetproject.org 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 835 bytes
Desc: This is a digitally signed message part.
URL:
<https://emu.freenetproject.org/pipermail/devl/attachments/20090320/ee0241dd/attachment.pgp>