https://github.com/spring-projects/spring-boot StringBuilder to provide replace(CharSequence target, CharSequence replacement) like String which will make it more easier to manipulate existing StringBuilder instead of creating new for these kind of replacement.StringBuilder offer public StringBuilder replace(int start, int end, String str) for replacement of substring, but if in case start(starting index) and end(ending index) of substring to be replaced in not known then there is no inbuilt method like replace(CharSequence target, CharSequence replacement) is present which can make the task easier like String.
Comment From: wilkinsona
I'm guessing this was opened in error as I can't see any direct link to Spring Boot. @Shivangip285 if that's not the case, please provide some more details and we can take another look.
Comment From: Shivangip285
https://github.com/spring-projects/spring-boot StringBuilder to provide replace(CharSequence target, CharSequence replacement) like String which will make it more easier to manipulate existing StringBuilder instead of creating new for these kind of replacement.StringBuilder offer public StringBuilder replace(int start, int end, String str) for replacement of substring, but if in case start(starting index) and end(ending index) of substring to be replaced in not known then there is no inbuilt method like replace(CharSequence target, CharSequence replacement) is present which can make the task easier like String.
https://github.com/spring-projects/spring-boot StringBuilder to provide replace(CharSequence target, CharSequence replacement) like String which will make it more easier to manipulate existing StringBuilder instead of creating new for these kind of replacement.StringBuilder offer public StringBuilder replace(int start, int end, String str) for replacement of substring, but if in case start(starting index) and end(ending index) of substring to be replaced in not known then there is no inbuilt method like replace(CharSequence target, CharSequence replacement) is present which can make the task easier like String.
Comment From: wilkinsona
Sorry, I still don't see the connection to Spring Boot. StringBuilder is part of the JDK so we cannot change it. Perhaps you're suggesting that we should be using StringBuilder differently somewhere? If so, please link to some Spring Boot code and describe the change that you think we could make.
Comment From: Shivangip285
Hello Andy, I had been recently working on a project where we were producing many events with unique identifier as string or number. For string we have inbuilt thing like uuid but no such thing for unique number, though we have used a custom function for it , but I had been wondering why we don't have something like this in spring boot, are we planning to have some feature in future. Please let me know if in case you are planning to have something like this would like to contribute. Thanks and regards Shivangi Pandey
On Thu, Oct 6, 2022 at 2:20 PM Andy Wilkinson @.***> wrote:
Sorry, I still don't see the connection to Spring Boot. StringBuilder is part of the JDK so we cannot change it. Perhaps you're suggesting that we should be using StringBuilder differently somewhere? If so, please link to some Spring Boot code and describe the change that you think we could make.
— Reply to this email directly, view it on GitHub https://github.com/spring-projects/spring-boot/issues/32584#issuecomment-1269611824, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZPVVCJES2ZKFB3YRD6XIXTWB2HGJANCNFSM6AAAAAAQ52Z67E . You are receiving this because you were mentioned.Message ID: @.***>
Comment From: philwebb
@Shivangip285 We're not planning to add anything like that to Spring Boot itself. It feel out of scope for this project.
Comment From: Shivangip285
Ok, thanks.
On Mon, 21 Nov 2022 at 11:29 PM, Phil Webb @.***> wrote:
@Shivangip285 https://github.com/Shivangip285 We're not planning to add anything like that to Spring Boot itself. It feel out of scope for this project.
— Reply to this email directly, view it on GitHub https://github.com/spring-projects/spring-boot/issues/32584#issuecomment-1322447078, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZPVVCNJOXA2MY3IVERJCHTWJOZ6JANCNFSM6AAAAAAQ52Z67E . You are receiving this because you were mentioned.Message ID: @.***>