click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r1037403 - in /click/trunk/click: extras/src/org/apache/click/extras/control/Menu.java extras/src/org/apache/click/extras/control/MenuFactory.java framework/src/org/apache/click/util/ContainerUtils.java
Date Sun, 21 Nov 2010 09:52:46 GMT
Author: sabob
Date: Sun Nov 21 09:52:46 2010
New Revision: 1037403

URL: http://svn.apache.org/viewvc?rev=1037403&view=rev
Log:
checkstyle

Modified:
    click/trunk/click/extras/src/org/apache/click/extras/control/Menu.java
    click/trunk/click/extras/src/org/apache/click/extras/control/MenuFactory.java
    click/trunk/click/framework/src/org/apache/click/util/ContainerUtils.java

Modified: click/trunk/click/extras/src/org/apache/click/extras/control/Menu.java
URL: http://svn.apache.org/viewvc/click/trunk/click/extras/src/org/apache/click/extras/control/Menu.java?rev=1037403&r1=1037402&r2=1037403&view=diff
==============================================================================
--- click/trunk/click/extras/src/org/apache/click/extras/control/Menu.java (original)
+++ click/trunk/click/extras/src/org/apache/click/extras/control/Menu.java Sun Nov 21 09:52:46
2010
@@ -1032,9 +1032,9 @@ public class Menu extends AbstractContro
     }
 
     /**
-     * Return the Menu HTML HEAD elements for the following
-     * resources:
-     * <p/>
+     * Return the Menu HEAD elements to be included in the page.
+     * The following resources are returned:
+     *
      * <ul>
      * <li><tt>click/menu.css</tt></li>
      * <li><tt>click/control.js</tt></li>

Modified: click/trunk/click/extras/src/org/apache/click/extras/control/MenuFactory.java
URL: http://svn.apache.org/viewvc/click/trunk/click/extras/src/org/apache/click/extras/control/MenuFactory.java?rev=1037403&r1=1037402&r2=1037403&view=diff
==============================================================================
--- click/trunk/click/extras/src/org/apache/click/extras/control/MenuFactory.java (original)
+++ click/trunk/click/extras/src/org/apache/click/extras/control/MenuFactory.java Sun Nov
21 09:52:46 2010
@@ -166,7 +166,7 @@ public class MenuFactory implements Seri
     protected final static Set<String> DEFAULT_ATTRIBUTES = new HashSet<String>();
 
     /** The menu cache. */
-    protected static final Map<String, Menu> menuCache = new ConcurrentHashMap<String,
Menu>();
+    protected static final Map<String, Menu> MENU_CACHE = new ConcurrentHashMap<String,
Menu>();
 
     static {
         DEFAULT_ATTRIBUTES.add("name");
@@ -562,7 +562,7 @@ public class MenuFactory implements Seri
      * @return the map containing menus cached by name
      */
     protected Map<String, Menu> getMenuCache() {
-        return menuCache;
+        return MENU_CACHE;
     }
 
     /**

Modified: click/trunk/click/framework/src/org/apache/click/util/ContainerUtils.java
URL: http://svn.apache.org/viewvc/click/trunk/click/framework/src/org/apache/click/util/ContainerUtils.java?rev=1037403&r1=1037402&r2=1037403&view=diff
==============================================================================
--- click/trunk/click/framework/src/org/apache/click/util/ContainerUtils.java (original)
+++ click/trunk/click/framework/src/org/apache/click/util/ContainerUtils.java Sun Nov 21 09:52:46
2010
@@ -1416,7 +1416,7 @@ public class ContainerUtils {
                 return new BigDecimal((BigInteger) value);
             }
             if (c == Boolean.class) {
-                return BigDecimal.valueOf(((Boolean) value).booleanValue()? 1 : 0);
+                return BigDecimal.valueOf(((Boolean) value).booleanValue() ? 1 : 0);
             }
             if (c == Character.class) {
                 return BigDecimal.valueOf(((Character) value).charValue());



Mime
View raw message