click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r943889 - /click/trunk/click/examples/src/org/apache/click/examples/util/ExampleUtils.java
Date Thu, 13 May 2010 14:05:22 GMT
Author: sabob
Date: Thu May 13 14:05:22 2010
New Revision: 943889

URL: http://svn.apache.org/viewvc?rev=943889&view=rev
Log:
improved variable names

Modified:
    click/trunk/click/examples/src/org/apache/click/examples/util/ExampleUtils.java

Modified: click/trunk/click/examples/src/org/apache/click/examples/util/ExampleUtils.java
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/src/org/apache/click/examples/util/ExampleUtils.java?rev=943889&r1=943888&r2=943889&view=diff
==============================================================================
--- click/trunk/click/examples/src/org/apache/click/examples/util/ExampleUtils.java (original)
+++ click/trunk/click/examples/src/org/apache/click/examples/util/ExampleUtils.java Thu May
13 14:05:22 2010
@@ -72,16 +72,16 @@ public class ExampleUtils {
 
         String currencyCode = currency.getCurrencyCode();
 
-        Locale locale = Locale.getDefault();
-        symbol = currency.getSymbol(locale);
+        Locale defaultLocale = Locale.getDefault();
+        symbol = currency.getSymbol(defaultLocale);
         if(!symbol.equals(currencyCode)) {
             CURRENCY_SYMBOLS.put(currency, symbol);
             return symbol;
         }
 
-        Locale[] allLocales = Locale.getAvailableLocales();
-        for (Locale allLocale : allLocales) {
-            symbol = currency.getSymbol(allLocale);
+        Locale[] locales = Locale.getAvailableLocales();
+        for (Locale locale : locales) {
+            symbol = currency.getSymbol(locale);
             if (!symbol.equals(currencyCode)) {
                 CURRENCY_SYMBOLS.put(currency, symbol);
                 return symbol;



Mime
View raw message