Community
Participate
Working Groups
StringBuffer syntax is the oldschool style in the tests. The recent tests are written using simple string because it is optimized by the Java compiler so let's use the more readable syntax. - A string literal concatenation is converted to a single string literal at compile time - A dynamic string concatenation is converted to a StringBuilder at compile time - A dynamic concatenation on several statement should be written using StringBuilder (not StringBuffer) - StringBuffer is supposed to be used when you need a thread-safe builder, so actually: never :)
Gerrit change https://git.eclipse.org/r/c/jdt/eclipse.jdt.ui/+/170785 was merged to [master]. Commit: http://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/commit/?id=0554db5338bdc6ea3e2e342472f5136c01291a7e