Re: [PR] [COLLECTIONS-855] Fixed hashing calculation as per report [commons-collections]

2024-06-11 Thread via GitHub
Claudenw commented on code in PR #501: URL: https://github.com/apache/commons-collections/pull/501#discussion_r1635902965 ## src/main/java/org/apache/commons/collections4/bloomfilter/EnhancedDoubleHasher.java: ## @@ -167,41 +167,33 @@ public boolean processIndices(final IntPred

Re: [PR] [COLLECTIONS-855] Fixed hashing calculation as per report [commons-collections]

2024-06-11 Thread via GitHub
aherbert commented on PR #501: URL: https://github.com/apache/commons-collections/pull/501#issuecomment-2162221580 @Claudenw I think this is the wrong solution. You are compromising 99.% of use cases to handle the edge case of k >= bits. In practical use this will not be needed. I do n

Re: [PR] Bump org.apache.maven.plugins:maven-pmd-plugin from 3.22.0 to 3.23.0 [commons-parent]

2024-06-11 Thread via GitHub
garydgregory merged PR #428: URL: https://github.com/apache/commons-parent/pull/428 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@c

Re: [PR] Bump org.apache.commons:commons-parent from 70 to 71 [commons-dbcp]

2024-06-11 Thread via GitHub
garydgregory merged PR #395: URL: https://github.com/apache/commons-dbcp/pull/395 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@com

Re: [PR] Bump org.apache.commons:commons-parent from 70 to 71 [commons-dbcp]

2024-06-11 Thread via GitHub
garydgregory commented on PR #395: URL: https://github.com/apache/commons-dbcp/pull/395#issuecomment-2161336720 @dependabot rebase -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific

Re: [PR] Bump org.apache.commons:commons-parent from 70 to 71 [commons-compress]

2024-06-11 Thread via GitHub
garydgregory merged PR #537: URL: https://github.com/apache/commons-compress/pull/537 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...

Re: [PR] Bump org.apache.commons:commons-parent from 70 to 71 [commons-io]

2024-06-11 Thread via GitHub
garydgregory merged PR #637: URL: https://github.com/apache/commons-io/pull/637 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@commo

Re: [PR] Bump org.apache.commons:commons-parent from 70 to 71 [commons-configuration]

2024-06-11 Thread via GitHub
garydgregory merged PR #434: URL: https://github.com/apache/commons-configuration/pull/434 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubs

Re: [PR] Bump org.apache.commons:commons-parent from 70 to 71 [commons-validator]

2024-06-11 Thread via GitHub
garydgregory merged PR #231: URL: https://github.com/apache/commons-validator/pull/231 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr..

Re: [PR] Bump org.apache.commons:commons-parent from 70 to 71 [commons-csv]

2024-06-11 Thread via GitHub
garydgregory merged PR #435: URL: https://github.com/apache/commons-csv/pull/435 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@comm

Re: [PR] Bump org.dbunit:dbunit from 2.7.3 to 2.8.0 [commons-configuration]

2024-06-11 Thread via GitHub
garydgregory merged PR #432: URL: https://github.com/apache/commons-configuration/pull/432 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubs

Re: [PR] Bump org.apache.commons:commons-parent from 70 to 71 [commons-text]

2024-06-11 Thread via GitHub
garydgregory merged PR #557: URL: https://github.com/apache/commons-text/pull/557 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@com

Re: [PR] Bump org.apache.commons:commons-parent from 70 to 71 [commons-net]

2024-06-11 Thread via GitHub
garydgregory merged PR #261: URL: https://github.com/apache/commons-net/pull/261 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@comm

Re: [PR] Bump org.apache.commons:commons-parent from 70 to 71 [commons-cli]

2024-06-11 Thread via GitHub
garydgregory merged PR #283: URL: https://github.com/apache/commons-cli/pull/283 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@comm

Re: [PR] Bump org.apache.commons:commons-parent from 70 to 71 [commons-lang]

2024-06-11 Thread via GitHub
garydgregory merged PR #1233: URL: https://github.com/apache/commons-lang/pull/1233 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@c

Re: [PR] [COLLECTIONS-855] Fixed hashing calculation as per report [commons-collections]

2024-06-11 Thread via GitHub
garydgregory commented on code in PR #501: URL: https://github.com/apache/commons-collections/pull/501#discussion_r1635187971 ## src/main/java/org/apache/commons/collections4/bloomfilter/EnhancedDoubleHasher.java: ## @@ -167,41 +167,33 @@ public boolean processIndices(final Int

Re: [PR] [COLLECTIONS-855] Fixed hashing calculation as per report [commons-collections]

2024-06-11 Thread via GitHub
aherbert commented on code in PR #501: URL: https://github.com/apache/commons-collections/pull/501#discussion_r1635137320 ## src/main/java/org/apache/commons/collections4/bloomfilter/EnhancedDoubleHasher.java: ## @@ -167,41 +167,33 @@ public boolean processIndices(final IntPred

Re: [PR] LANG-1728: Deprecate EvenListenerSupport [commons-lang]

2024-06-11 Thread via GitHub
thachlp commented on code in PR #1229: URL: https://github.com/apache/commons-lang/pull/1229#discussion_r1634957883 ## src/main/java/org/apache/commons/lang3/event/EventListenerSupport.java: ## @@ -66,9 +66,14 @@ * * * @param the type of event listener that is supported

[jira] [Created] (CLI-336) Deprecation use not always reported.

2024-06-11 Thread Claude Warren (Jira)
Claude Warren created CLI-336: - Summary: Deprecation use not always reported. Key: CLI-336 URL: https://issues.apache.org/jira/browse/CLI-336 Project: Commons CLI Issue Type: Improvement

[jira] [Updated] (CLI-336) Deprecation use not always reported.

2024-06-11 Thread Claude Warren (Jira)
[ https://issues.apache.org/jira/browse/CLI-336?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claude Warren updated CLI-336: -- Assignee: Claude Warren > Deprecation use not always reported. > > >

Re: [PR] [COLLECTIONS-855] Fixed hashing calculation as per report [commons-collections]

2024-06-11 Thread via GitHub
Claudenw commented on code in PR #501: URL: https://github.com/apache/commons-collections/pull/501#discussion_r1634913568 ## src/main/java/org/apache/commons/collections4/bloomfilter/EnhancedDoubleHasher.java: ## @@ -167,41 +167,33 @@ public boolean processIndices(final IntPred

Re: [PR] [COLLECTIONS-855] Fixed hashing calculation as per report [commons-collections]

2024-06-11 Thread via GitHub
aherbert commented on code in PR #501: URL: https://github.com/apache/commons-collections/pull/501#discussion_r1634862521 ## src/main/java/org/apache/commons/collections4/bloomfilter/EnhancedDoubleHasher.java: ## @@ -167,41 +167,33 @@ public boolean processIndices(final IntPred

Re: [PR] [COLLECTIONS-855] Fixed hashing calculation as per report [commons-collections]

2024-06-11 Thread via GitHub
Claudenw commented on PR #501: URL: https://github.com/apache/commons-collections/pull/501#issuecomment-2160622978 We do have coverage in the tests for the bad case. If we start an integer variable `int tet = 1;` and use it on line 198 rather than i. We can then do ``` if (++

Re: [PR] Bump org.apache.commons:commons-parent from 70 to 71 [commons-collections]

2024-06-11 Thread via GitHub
garydgregory merged PR #503: URL: https://github.com/apache/commons-collections/pull/503 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr

Re: [PR] Fix Reproducible Builds issues [commons-net]

2024-06-11 Thread via GitHub
garydgregory commented on PR #259: URL: https://github.com/apache/commons-net/pull/259#issuecomment-2160544465 😃 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscr

Re: [PR] [COLLECTIONS-855] Fixed hashing calculation as per report [commons-collections]

2024-06-11 Thread via GitHub
garydgregory commented on PR #501: URL: https://github.com/apache/commons-collections/pull/501#issuecomment-2160537613 Perhaps some of the information captured in this conversation could be preserved in a Java document or in-line comment. -- This is an automated message from the Apache G

Re: [PR] [COLLECTIONS-855] Fixed hashing calculation as per report [commons-collections]

2024-06-11 Thread via GitHub
aherbert commented on PR #501: URL: https://github.com/apache/commons-collections/pull/501#issuecomment-2160492067 The increment `inc` is adjusted by `i`. If it is negative then it has wrapped and we add `bits`. This works only if `i` is always less than `bits`. If `i > bits` then wh

Re: [PR] [COLLECTIONS-855] Fixed hashing calculation as per report [commons-collections]

2024-06-11 Thread via GitHub
Claudenw commented on PR #501: URL: https://github.com/apache/commons-collections/pull/501#issuecomment-2160483512 OK, I figured out what the lines 173-192 are doing . They ensure that the `inc` does not get greater than `bits`. -- This is an automated message from the Apache Git Servi

Re: [PR] [COLLECTIONS-855] Fixed hashing calculation as per report [commons-collections]

2024-06-11 Thread via GitHub
Claudenw commented on PR #501: URL: https://github.com/apache/commons-collections/pull/501#issuecomment-2160361892 I think this block is wrong: https://github.com/apache/commons-collections/blob/bb2fac47dc24033bae8a180bc59cb1e6e8769318/src/main/java/org/apache/commons/collections4/bloomfilt

Re: [PR] LANG-1728: Deprecate EvenListenerSupport [commons-lang]

2024-06-11 Thread via GitHub
thachlp commented on code in PR #1229: URL: https://github.com/apache/commons-lang/pull/1229#discussion_r1634357210 ## src/main/java/org/apache/commons/lang3/event/EventListenerSupport.java: ## @@ -66,9 +66,14 @@ * * * @param the type of event listener that is supported