Closed albfernandez closed 2 years ago
Looks good. I suppose all these buffers are short lived and not shared?
yep, they are all short lived (only used in a method) and one of them is a parameter for a private method that can be safely replaced too.
Not replaced shared objects because it could be dangerous Not replaced parameters to public / package methods , that will change the API and break clients
Reload is setting a minimum java version to 1.5, so we can replace StringBuffer with StringBuilder for some performance gain.
This Pull Request only changes the safe cases: variables privates to a method or used only in private methods calls.
Only changed src/main code, not src/test