* j16sdiz at freenetproject.org <j16sdiz at freenetproject.org> [2008-08-28
08:29:12]:
> Author: j16sdiz
> Date: 2008-08-28 08:29:11 +0000 (Thu, 28 Aug 2008)
> New Revision: 22197
>
> Modified:
> branches/saltedhashstore/freenet/src/freenet/support/BinaryBloomFilter.java
> branches/saltedhashstore/freenet/src/freenet/support/BloomFilter.java
>
> branches/saltedhashstore/freenet/src/freenet/support/CountingBloomFilter.java
> Log:
> more bloom filter fix
>
> Modified:
> branches/saltedhashstore/freenet/src/freenet/support/BinaryBloomFilter.java
> ===================================================================
> ---
> branches/saltedhashstore/freenet/src/freenet/support/BinaryBloomFilter.java
> 2008-08-28 02:23:34 UTC (rev 22196)
> +++
> branches/saltedhashstore/freenet/src/freenet/support/BinaryBloomFilter.java
> 2008-08-28 08:29:11 UTC (rev 22197)
> @@ -21,7 +21,7 @@
> */
> protected BinaryBloomFilter(int length, int k) {
> super(length, k);
> - filter = ByteBuffer.allocate(length / 8);
> + filter = ByteBuffer.allocate(this.length / 8);
> }
>
> /**
>
> Modified:
> branches/saltedhashstore/freenet/src/freenet/support/CountingBloomFilter.java
> ===================================================================
> ---
> branches/saltedhashstore/freenet/src/freenet/support/CountingBloomFilter.java
> 2008-08-28 02:23:34 UTC (rev 22196)
> +++
> branches/saltedhashstore/freenet/src/freenet/support/CountingBloomFilter.java
> 2008-08-28 08:29:11 UTC (rev 22197)
> @@ -21,7 +21,7 @@
> */
> protected CountingBloomFilter(int length, int k) {
> super(length, k);
> - filter = ByteBuffer.allocate(length / 4);
> + filter = ByteBuffer.allocate(this.length / 4);
> }
>
> /**
You should rename the local variable instead!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL:
<https://emu.freenetproject.org/pipermail/devl/attachments/20080828/fde9e898/attachment.pgp>