click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r1037402 - in /click/trunk/click: extras/src/org/apache/click/extras/control/CheckList.java framework/src/org/apache/click/util/ClickUtils.java framework/src/org/apache/click/util/ContainerUtils.java
Date Sun, 21 Nov 2010 09:42:37 GMT
Author: sabob
Date: Sun Nov 21 09:42:37 2010
New Revision: 1037402

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

Modified:
    click/trunk/click/extras/src/org/apache/click/extras/control/CheckList.java
    click/trunk/click/framework/src/org/apache/click/util/ClickUtils.java
    click/trunk/click/framework/src/org/apache/click/util/ContainerUtils.java

Modified: click/trunk/click/extras/src/org/apache/click/extras/control/CheckList.java
URL: http://svn.apache.org/viewvc/click/trunk/click/extras/src/org/apache/click/extras/control/CheckList.java?rev=1037402&r1=1037401&r2=1037402&view=diff
==============================================================================
--- click/trunk/click/extras/src/org/apache/click/extras/control/CheckList.java (original)
+++ click/trunk/click/extras/src/org/apache/click/extras/control/CheckList.java Sun Nov 21
09:42:37 2010
@@ -626,9 +626,8 @@ public class CheckList extends Field {
     }
 
     /**
-     * Return the CheckList HTML head imports statements for the following
-     * resources:
-     * <p/>
+     * Return the CheckList HEAD elements to be included in the page.
+     * The following resources are returned:
      * <ul>
      * <li><tt>click/checklist/checklist.css</tt></li>
      * <li><tt>click/checklist/checklist.js</tt></li>

Modified: click/trunk/click/framework/src/org/apache/click/util/ClickUtils.java
URL: http://svn.apache.org/viewvc/click/trunk/click/framework/src/org/apache/click/util/ClickUtils.java?rev=1037402&r1=1037401&r2=1037402&view=diff
==============================================================================
--- click/trunk/click/framework/src/org/apache/click/util/ClickUtils.java (original)
+++ click/trunk/click/framework/src/org/apache/click/util/ClickUtils.java Sun Nov 21 09:42:37
2010
@@ -2664,7 +2664,7 @@ public class ClickUtils {
         if (state == null) {
             // Set null state to see if it differs from previous state
             Object pop = pageMap.put(controlName, state);
-            if(pop != null) {
+            if (pop != null) {
                 // Previous state differs from current state, so set the
                 // session attribute to force session replication in a cluster
                 context.setSessionAttribute(resourcePath, pageMap);

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=1037402&r1=1037401&r2=1037402&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:42:37
2010
@@ -1404,18 +1404,23 @@ public class ContainerUtils {
      * @param value the object to convert into a BigDecimal
      * @return the converted BigDecimal value
      */
-        private BigDecimal bigDecValue( Object value ) {
-            if (value == null)
+        private BigDecimal bigDecValue(Object value) {
+            if (value == null) {
                 return BigDecimal.valueOf(0L);
+            }
             Class<?> c = value.getClass();
-            if ( c == BigDecimal.class )
-                return (BigDecimal)value;
-            if ( c == BigInteger.class )
-                return new BigDecimal( (BigInteger)value );
-                  if ( c == Boolean.class )
-                return BigDecimal.valueOf(((Boolean)value).booleanValue()? 1 : 0 );
-            if ( c == Character.class )
-                return BigDecimal.valueOf(((Character)value).charValue() );
+            if (c == BigDecimal.class) {
+                return (BigDecimal) value;
+            }
+            if (c == BigInteger.class) {
+                return new BigDecimal((BigInteger) value);
+            }
+            if (c == Boolean.class) {
+                return BigDecimal.valueOf(((Boolean) value).booleanValue()? 1 : 0);
+            }
+            if (c == Character.class) {
+                return BigDecimal.valueOf(((Character) value).charValue());
+            }
             return new BigDecimal(value.toString().trim());
         }
     }



Mime
View raw message