click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bck...@apache.org
Subject svn commit: r964186 - in /click/trunk/click/framework/src/org/apache/click: control/Column.java util/HtmlStringBuffer.java
Date Wed, 14 Jul 2010 20:29:18 GMT
Author: bckfnn
Date: Wed Jul 14 20:29:18 2010
New Revision: 964186

URL: http://svn.apache.org/viewvc?rev=964186&view=rev
Log:
minor performance optimization.

Modified:
    click/trunk/click/framework/src/org/apache/click/control/Column.java
    click/trunk/click/framework/src/org/apache/click/util/HtmlStringBuffer.java

Modified: click/trunk/click/framework/src/org/apache/click/control/Column.java
URL: http://svn.apache.org/viewvc/click/trunk/click/framework/src/org/apache/click/control/Column.java?rev=964186&r1=964185&r2=964186&view=diff
==============================================================================
--- click/trunk/click/framework/src/org/apache/click/control/Column.java (original)
+++ click/trunk/click/framework/src/org/apache/click/control/Column.java Wed Jul 14 20:29:18
2010
@@ -1346,7 +1346,7 @@ public class Column implements Serializa
             Context context, int rowIndex) {
 
         if (getDecorator() != null) {
-            Object value = getDecorator().render(row, context);
+            String value = getDecorator().render(row, context);
             if (value != null) {
                 buffer.append(value);
             }

Modified: click/trunk/click/framework/src/org/apache/click/util/HtmlStringBuffer.java
URL: http://svn.apache.org/viewvc/click/trunk/click/framework/src/org/apache/click/util/HtmlStringBuffer.java?rev=964186&r1=964185&r2=964186&view=diff
==============================================================================
--- click/trunk/click/framework/src/org/apache/click/util/HtmlStringBuffer.java (original)
+++ click/trunk/click/framework/src/org/apache/click/util/HtmlStringBuffer.java Wed Jul 14
20:29:18 2010
@@ -211,7 +211,7 @@ public class HtmlStringBuffer {
             ClickUtils.appendEscapeString(string, this);
 
         } else {
-            append(value);
+            append(string);
         }
 
         return this;



Mime
View raw message