From fd55ee2dcde388a19c95a94516e7ee9d72d72914 Mon Sep 17 00:00:00 2001 From: Yoshito Umaoka Date: Fri, 18 Dec 2009 17:23:35 +0000 Subject: [PATCH] ICU-7286 Avoid Unnecessary String object creation. X-SVN-Rev: 27103 --- .../main/classes/core/src/com/ibm/icu/impl/UCaseProps.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/icu4j/main/classes/core/src/com/ibm/icu/impl/UCaseProps.java b/icu4j/main/classes/core/src/com/ibm/icu/impl/UCaseProps.java index ca6b1d740f..085273e4a2 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/impl/UCaseProps.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/impl/UCaseProps.java @@ -988,7 +988,7 @@ public final class UCaseProps { excOffset=(int)(value>>32)+1; /* set the output pointer to the lowercase mapping */ - out.append(new String(exceptions, excOffset, full)); + out.append(exceptions, excOffset, full); /* return the string length */ return full; @@ -1078,7 +1078,7 @@ public final class UCaseProps { if(full!=0) { /* set the output pointer to the result string */ - out.append(new String(exceptions, excOffset, full)); + out.append(exceptions, excOffset, full); /* return the string length */ return full; @@ -1271,7 +1271,7 @@ public final class UCaseProps { if(full!=0) { /* set the output pointer to the result string */ - out.append(new String(exceptions, excOffset, full)); + out.append(exceptions, excOffset, full); /* return the string length */ return full;