Scout/java 5 features - #2106
Conversation
|
I'm just wondering if one needs to worry about thread safety on the switch from StringBuffer to StringBuilder in all these classes. |
|
@silviuburceadev I was careful and only changed from In cases where something else was done with |
|
This batch is now done. One thing I'd ignore contains/indexOf - it's not worth the change as it won't compile on Java 4, we've got an ant filter which replaces StringBuilder with StringBuffer for Java 4 now, contains is a bit trickier (although I should eventually getting around to writing a regex for it as well...). |
If we cannot go for Java 8 features yet, we can at least leverage Java 5 features.
Here is the first of some modernization PRs