提交 a6cf7e12 编写于 作者: K kohsuke

Java5 optimization

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15623 71c3de6d-444a-0410-be80-ed276b4c234a
上级 e73dd679
......@@ -178,7 +178,7 @@ public class Functions {
* Adds the proper suffix.
*/
public static String addSuffix(int n, String singular, String plural) {
StringBuffer buf = new StringBuffer();
StringBuilder buf = new StringBuilder();
buf.append(n).append(' ');
if(n==1)
buf.append(singular);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册