ICU-8268 Inefficient use of new String(...) constructor.
X-SVN-Rev: 30733
This commit is contained in:
parent
7e90359b1a
commit
79287fc66b
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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.
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user