Skip to content

replacing StringBuilder with StringJoiner in order to simplify logic#4628

Open
renatoh wants to merge 3 commits into
apache:mainfrom
renatoh:simplify-code-by-switchign-from-StringBuilder-to-StringJoiner
Open

replacing StringBuilder with StringJoiner in order to simplify logic#4628
renatoh wants to merge 3 commits into
apache:mainfrom
renatoh:simplify-code-by-switchign-from-StringBuilder-to-StringJoiner

Conversation

@renatoh

@renatoh renatoh commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

@janhoy
Following up on the discussion on #4606, I simplified the creation of URLs by moving from StringBuilder to the more flexible StringJoiner.

I had to change the signature of the public method StrUtils.partialURLEncodeVal, since it was couple to a StringBuilder, now it returns the encodedUrl rather than adding it to the passed in StringBuilder, which is more flexible.
Not sure if I can just change the signature of such a method or if I need to keep old method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant