ICU-9942 Fixed a coding problem detected by FindBugs - replaced == with equals()

X-SVN-Rev: 33238
This commit is contained in:
Yoshito Umaoka 2013-02-15 17:17:44 +00:00
parent 9e53141f8b
commit bd8a81bfd6

View File

@ -1,6 +1,6 @@
/**
*******************************************************************************
* Copyright (C) 1996-2012, International Business Machines Corporation and
* Copyright (C) 1996-2013, International Business Machines Corporation and
* others. All Rights Reserved.
*******************************************************************************
*/
@ -1423,7 +1423,7 @@ public final class RuleBasedCollator extends Collator {
* @stable ICU 2.8
*/
public int compare(String source, String target) {
if (source == target) {
if (source.equals(target)) {
return 0;
}
CollationBuffer buffer = null;