Re: Inefficient use StringBuffer or StringBuilder[Optimization|clean-up] {Package: sun.*}

2013-06-07 Thread Otávio Gonçalves de Santana
I did one more refactoring in this packages. diff --git a/src/share/classes/sun/management/Agent.java b/src/share/classes/sun/management/Agent.java --- a/src/share/classes/sun/management/Agent.java +++ b/src/share/classes/sun/management/Agent.java @@ -497,7 +497,7 @@ } else {

Inefficient use StringBuffer or StringBuilder[Optimization|clean-up] {Package: sun.*}

2013-06-07 Thread Otávio Gonçalves de Santana
Inefficient use StringBuffer or StringBuilder[Optimization|clean-up] The string addition in the parameter will create another string buffer, append all the components, then convert that to a string so the you can be appended to your string buffer. So I replace this: sb.append("xxx: [" + ge