Replace concat String to append in StringBuilder parameters

Pavel Rappo pavel.rappo at
Mon Aug 11 10:56:05 UTC 2014

> In the class
> src/share/classes/javax/management/openmbean/ you have
> added the
> annotation @SuppressWarnings("StringConcatenationInsideStringBufferAppend")
> instead of fixing the concatenation inside the append method. Why?

+1 Moreover, I wonder where this value comes from? I've never seen it before. Here are warnings that javac supports:


It doesn't look like one of Eclipse's warnings either.

> And I would like to suggest to drop explicit usage of StringBuilder in some
> methods at all to improve code readability.



More information about the core-libs-dev mailing list