差異處

這裏顯示兩個版本的差異處。

連向這個比對檢視

下次修改
前次修改
java:code_quality:findbug:sbsc_use_stringbuffer_concatenation [2013/02/24 23:01]
127.0.0.1 外部編輯
java:code_quality:findbug:sbsc_use_stringbuffer_concatenation [2023/06/25 09:48] (目前版本)
行 2: 行 2:
 ====== SBSC_USE_STRINGBUFFER_CONCATENATION ====== ====== SBSC_USE_STRINGBUFFER_CONCATENATION ======
 ===== Description ===== ===== Description =====
-SBSC: Method ​com.supermicro.ssm.server.web.comp.embed.AppletComponent.getValue(String) concatenates strings using + in a loop\\+SBSC: Method AppletComponent.getValue(String) concatenates strings using + in a loop\\
  
 The method seems to be building a String using concatenation in a loop. In each iteration, the String is converted to a StringBuffer/​StringBuilder,​ appended to, and converted back to a String. This can lead to a cost quadratic in the number of iterations, as the growing string is recopied in each iteration.\\ The method seems to be building a String using concatenation in a loop. In each iteration, the String is converted to a StringBuffer/​StringBuilder,​ appended to, and converted back to a String. This can lead to a cost quadratic in the number of iterations, as the growing string is recopied in each iteration.\\
行 24: 行 24:
 return sb.toString();​ return sb.toString();​
 </​code>​ </​code>​
 +=====    ===== 
 +---- 
 +\\ 
 +~~DISQUS~~