Replaced the use of String.join combined with Collections.nCopies to generate SQL placeholders with the more concise and efficient String.repeat method.
- This change simplifies the code and improves readability.
- Performance might be slightly improved as String.repeat is more direct.
No functionality change; only a refactoring to improve code clarity and efficiency.
Comment From: luckygc
@snicoll Sorry, I didn't consider the case where columnCount is 0. I have revised the code and resubmitted it. The changes have been tested.
Comment From: snicoll
Thanks for the update but we'd like to keep the code as it is. It's not in a hot path and the updated code is much less readable.