mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-03 15:15:54 +00:00
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:
1 parent
e73dd67934
commit
a6cf7e129b
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user