]> granicus.if.org Git - icu/commitdiff
ICU-13248 simplify a titlecasing call site
authorMarkus Scherer <markus.icu@gmail.com>
Tue, 13 Feb 2018 00:25:45 +0000 (00:25 +0000)
committerMarkus Scherer <markus.icu@gmail.com>
Tue, 13 Feb 2018 00:25:45 +0000 (00:25 +0000)
X-SVN-Rev: 40901

icu4j/main/classes/core/src/com/ibm/icu/impl/LocaleDisplayNamesImpl.java

index 2b5076cff8184c449b24e05b035b6854f4bf1618..54d7293c4debe46a19cf70b39685abb3151d68f4 100644 (file)
@@ -91,8 +91,7 @@ public class LocaleDisplayNamesImpl extends LocaleDisplayNames {
             CaseMap.toTitle().wholeString().noLowercase();
 
     private static String toTitleWholeStringNoLowercase(ULocale locale, String s) {
-        return TO_TITLE_WHOLE_STRING_NO_LOWERCASE.apply(
-                locale.toLocale(), null, s, new StringBuilder(), null).toString();
+        return TO_TITLE_WHOLE_STRING_NO_LOWERCASE.apply(locale.toLocale(), null, s);
     }
 
     public static LocaleDisplayNames getInstance(ULocale locale, DialectHandling dialectHandling) {