-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Drop unused prefix and suffix from string collection utils
#124353
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
Drop unused prefix and suffix from string collection utils
#124353
Conversation
These parameters are confusing and almost entirely unused (apart from one easily-adjusted test and two production locations where they are used incorrectly). This commit just removes them.
|
Pinging @elastic/es-core-infra (Team:Core/Infra) |
| private static void appendCommaSeparatedSet(Set<String> items, StringBuilder sb) { | ||
| sb.append("["); | ||
| Strings.collectionToDelimitedString(items, ", ", "'", "'", sb); | ||
| Strings.collectionToDelimitedString(items, ", ", sb); |
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.
Ah I missed this usage when I looked at your other PR - TBH I missed the whole method without the limit. Here there actually is a non-empty prefix and suffix... I'm inclined to think that it probably wouldn't have a huge effect if we don't wrap the items with single quotes, but technically we're changing something here. How do you feel about it?
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.
Oof that's a subtle one, the dataflow-to-here results pane in IntelliJ uses a proportional font in which "" and "'" are indistinguishable to my eyes.
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.
Ahh this is a great workaround!
nielsbauman
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.
LGTM, thanks David!
…ic#124353) These parameters are confusing and almost entirely unused (apart from one easily-adjusted test, two production locations where they are used incorrectly, and one production location that can be adjusted not to need them). This commit just removes them.
…ic#124353) These parameters are confusing and almost entirely unused (apart from one easily-adjusted test, two production locations where they are used incorrectly, and one production location that can be adjusted not to need them). This commit just removes them.
…ic#124353) These parameters are confusing and almost entirely unused (apart from one easily-adjusted test, two production locations where they are used incorrectly, and one production location that can be adjusted not to need them). This commit just removes them.
…) (#124366) These parameters are confusing and almost entirely unused (apart from one easily-adjusted test, two production locations where they are used incorrectly, and one production location that can be adjusted not to need them). This commit just removes them.
…) (#124365) These parameters are confusing and almost entirely unused (apart from one easily-adjusted test, two production locations where they are used incorrectly, and one production location that can be adjusted not to need them). This commit just removes them.
…) (#124367) These parameters are confusing and almost entirely unused (apart from one easily-adjusted test, two production locations where they are used incorrectly, and one production location that can be adjusted not to need them). This commit just removes them.
…ic#124353) These parameters are confusing and almost entirely unused (apart from one easily-adjusted test, two production locations where they are used incorrectly, and one production location that can be adjusted not to need them). This commit just removes them.
These parameters are confusing and almost entirely unused (apart from
one easily-adjusted test, two production locations where they are used
incorrectly, and one production location that can be adjusted not to
need them). This commit just removes them.