Java5 optimization

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15623 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2009-02-24 05:23:27 +00:00
1 parent e73dd67934
commit a6cf7e129b
1 file changed
+1 -1
+1 -1
View File
@@ -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);