ICU-9938 Fixed a coding problem detected by FindBugs - replacing == with equals().

X-SVN-Rev: 33235
This commit is contained in:
Yoshito Umaoka 2013-02-15 16:25:03 +00:00
parent 915f2365a3
commit 92c0aa3b98

View File

@ -741,7 +741,7 @@ public class Currency extends MeasureUnit implements Serializable {
int i = 0;
for (; i < resultList.size(); i++) {
CurrencyStringInfo tmp = resultList.get(i);
if (item.getISOCode() == tmp.getISOCode()) {
if (item.getISOCode().equals(tmp.getISOCode())) {
if (matchLength > tmp.getCurrencyString().length()) {
resultList.set(i, item);
}