From: Yoshito Umaoka Date: Tue, 4 Jun 2013 16:15:58 +0000 (+0000) Subject: ICU-10174 Fixed a bad code snippet in the LocaleMatcher's API class doc. X-Git-Tag: milestone-59-0-1~2851 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=78106e64342679fb325fc006a0ce555b4ccb5daf;p=icu ICU-10174 Fixed a bad code snippet in the LocaleMatcher's API class doc. X-SVN-Rev: 33801 --- diff --git a/icu4j/main/classes/core/src/com/ibm/icu/util/LocaleMatcher.java b/icu4j/main/classes/core/src/com/ibm/icu/util/LocaleMatcher.java index 427025448c5..26135ea212f 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/util/LocaleMatcher.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/util/LocaleMatcher.java @@ -1,6 +1,6 @@ /* **************************************************************************************** - * Copyright (C) 2009-2010, Google, Inc.; International Business Machines Corporation * + * Copyright (C) 2009-2013, Google, Inc.; International Business Machines Corporation * * and others. All Rights Reserved. * **************************************************************************************** */ @@ -24,10 +24,10 @@ import com.ibm.icu.impl.Row.R3; * example: * *
- * LanguageMatcher matcher = new StandardLanguageMatcher("fr, en-GB, en");
+ * LocaleMatcher matcher = new LocaleMatcher("fr, en-GB, en");
  * 
  * // afterwards:
- * matcher.getBestMatch(LanguageCode.US).first == LanguageCode.ENGLISH
+ * matcher.getBestMatch("en-US").toLanguageTag() => "en"
  * 
* * It takes into account when languages are close to one another, such as fil