ICU-8226 fixed sign on comparison

X-SVN-Rev: 29289
This commit is contained in:
Mark Davis 2011-01-11 23:43:54 +00:00
parent 8f2666924e
commit 7e67c6ed63

View File

@ -4272,7 +4272,7 @@ public class UnicodeSet extends UnicodeFilter implements Iterable<String>, Compa
* @stable ICU 4.4
*/
public static int compare(int codePoint, String string) {
return CharSequences.compare(string, codePoint);
return -CharSequences.compare(string, codePoint);
}