/[classpath]/classpath/java/util/Currency.java
ViewVC logotype

Diff of /classpath/java/util/Currency.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4.2.2 by gnu_andrew, Sun Jan 16 15:15:12 2005 UTC revision 1.4.2.3 by gnu_andrew, Mon Jan 17 02:20:55 2005 UTC
# Line 304  public final class Currency Line 304  public final class Currency
304      /* Loop through each locale, looking for the code */      /* Loop through each locale, looking for the code */
305      for (int i = 0;i < allLocales.length; i++)      for (int i = 0;i < allLocales.length; i++)
306        {        {
307          Currency testCurrency = getInstance (allLocales[i]);          try
308          if (testCurrency != null &&            {
309              testCurrency.getCurrencyCode().equals(currencyCode))              Currency testCurrency = getInstance (allLocales[i]);
310            return testCurrency;              if (testCurrency != null &&
311                    testCurrency.getCurrencyCode().equals(currencyCode))
312                  {
313                    return testCurrency;
314                  }
315              }
316            catch (IllegalArgumentException exception)
317              {
318                /* Ignore locales without valid countries */
319              }
320        }        }
321      /*      /*
322       * If we get this far, the code is not supported by any of       * If we get this far, the code is not supported by any of

Legend:
Removed from v.1.4.2.2  
changed lines
  Added in v.1.4.2.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26