ICU-8268 Inefficient use of new String(...) constructor.

X-SVN-Rev: 30733
This commit is contained in:
Abhinav Gupta 2011-09-28 20:29:28 +00:00
parent 7e90359b1a
commit 79287fc66b
3 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
/*
*******************************************************************************
* Copyright (C) 2001-2009, International Business Machines
* Copyright (C) 2001-2011, International Business Machines
* Corporation and others. All Rights Reserved.
*******************************************************************************
*/
@ -148,6 +148,6 @@ public class BidiRun {
*/
public String toString()
{
return new String("BidiRun " + start + " - " + limit + " @ " + level);
return "BidiRun " + start + " - " + limit + " @ " + level;
}
}

View File

@ -1134,7 +1134,7 @@ public class SpoofChecker {
default:
assert (false);
}
return new String();
return "";
}
// Populate the final binary output data array with the compiled data.

View File

@ -268,7 +268,7 @@ public final class LocaleData {
if ( noSubstitute && (stringBundle.getLoadingStatus() == ICUResourceBundle.FROM_ROOT) )
return null;
return new String (stringBundle.getString());
return stringBundle.getString();
}
/**