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 |