kinow commented on issue #443: Optimize string split methods: 1. Use ThreadLocal to make reuse of th… URL: https://github.com/apache/commons-lang/pull/443#issuecomment-524592784 @Stzx >I am worried that some problems will still be caused by using the clear method. such as I think this does not apply here. The instance that was a `List` would now be a `SplitBuffer`, i.e. ``` final SplitBuffer buffer = SPLIT_BUFFER_THREAD_LOCAL.get().getBuffer(); ``` https://github.com/apache/commons-lang/pull/443/files#diff-3f4c835875ddc8a211c0272e8be51394R7902-R7903 So `buffer` doesn't need to respect the `List`/`ArrayList` contracts.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
