Repository navigation
Conversation
…String...) - New factory methods build immutable and modifiable params from name/value pairs; repeated names become multi-values and null becomes empty string. - Existing params(String...) helpers in SolrTestCaseJ4 and main code now delegate to them. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
This is about freaking time to have this! In separate PRs I want to add The part I'm unsure about in this PR is the null handling. Annoyingly, |
|
🤖 AI text below 🤖 (reviewed by Nick Shanin) The failing @dsmiley I finished the review and prepared a tested follow-up on top of your current head:
Verified on Linux: 44 tests across the five SolrJ parameter suites and 20 tests across The changelog entry passes the project's To take the tested commits: git switch SOLR-18621
git fetch https://github.com/nick-boss-tech/solr.git solr-18621-params-factory-fixes
git merge --ff-only 199911b298fac80f4cea5e3de553675b64f6a6a9Would you prefer |
|
@nick-boss-tech |
https://issues.apache.org/jira/browse/SOLR-18621
Adds name/value varargs factories to SolrJ, mirroring
SolrTestCaseJ4.params.SolrParams.of(String...)returns unmodifiable params;ModifiableSolrParams.of(String...)returns modifiable params (plusof()andof(String, String)so every overload on the subclass returns the modifiable type).IllegalArgumentException.params(String...)helpers (SolrTestCaseJ4, CollectionsHandler, CoreAdminHandler, SyncStrategy, StreamTool, SolrBenchState) delegate to the new method. Other callers are not migrated.ModifiableSolrParams.of(null)is now ambiguous; the one such test call is cast.🤖 Generated with Claude Code