-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Fix map size in CustomAnalyzer#paramsToMap. #14770
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
This PR does not have an entry in lucene/CHANGES.txt. Consider adding one. If the PR doesn't need a changelog entry, then add the skip-changelog label to it and you will stop receiving this reminder on future updates to the PR. |
|
This PR has not had activity in the past 2 weeks, labeling it as stale. If the PR is waiting for review, notify the [email protected] list. Thank you for your contribution! |
|
This PR has not had activity in the past 2 weeks, labeling it as stale. If the PR is waiting for review, notify the [email protected] list. Thank you for your contribution! |
uschindler
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine, I think this was an oversight.
Anyways we should remove and deprecated CollectionUtil, see comment here:
| public static <K, V> HashMap<K, V> newHashMap(int size) { | |
| // This should be replaced with HashMap.newHashMap when lucene moves to jdk19 minimum version | |
| return new HashMap<>((int) (size / 0.75f) + 1); | |
| } |
We're on Java 19 since long time! :-) So both Lucene 10 and Main can use the JDK provided method. Let's open a PR!
|
Let's backport this to 10.x |
OK, I will do it. |
|
Hi, |
OK, I will fix it. |
Added with #15517. |
Description