]> granicus.if.org Git - icu/commitdiff
ICU-8268 return value was ignored.
authorAbhinav Gupta <mail@abhinavg.net>
Tue, 27 Sep 2011 19:50:26 +0000 (19:50 +0000)
committerAbhinav Gupta <mail@abhinavg.net>
Tue, 27 Sep 2011 19:50:26 +0000 (19:50 +0000)
Return value of string concatenation was ignored. Results in invalid data.

X-SVN-Rev: 30726

icu4j/main/classes/charset/src/com/ibm/icu/charset/CharsetMBCS.java

index a5f3f7333b423b659c7798849520400531b41370..a8a93fc4572fe7c71129dfd336fdaf7ada9e5e23 100644 (file)
@@ -1063,8 +1063,7 @@ class CharsetMBCS extends CharsetICU {
         }
         
         /* set the canonical converter name */
-        newName = new String(icuCanonicalName);
-        newName.concat(UConverterConstants.OPTION_SWAP_LFNL_STRING);
+        newName = icuCanonicalName.concat(UConverterConstants.OPTION_SWAP_LFNL_STRING);
         
         if (mbcsTable.swapLFNLStateTable == null) {
             mbcsTable.swapLFNLStateTable = newStateTable;