click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r959140 - /click/trunk/click/framework/src/org/apache/click/control/Column.java
Date Tue, 29 Jun 2010 23:21:48 GMT
Author: sabob
Date: Tue Jun 29 23:21:48 2010
New Revision: 959140

URL: http://svn.apache.org/viewvc?rev=959140&view=rev
Log:
string optimization in tight loop

Modified:
    click/trunk/click/framework/src/org/apache/click/control/Column.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=959140&r1=959139&r2=959140&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 Tue Jun 29 23:21:48
2010
@@ -1170,8 +1170,9 @@ public class Column implements Serializa
 
         buffer.elementStart("td");
         if (getRenderId()) {
-            buffer.appendAttribute("id", getId() + "_" + rowIndex);
-            buffer.appendAttribute("headers", getId());
+            String id = getId();
+            buffer.append(" id=\"").append(id).append("_").append(rowIndex).append("\"");
+            buffer.appendAttribute("headers", id);
         }
         buffer.appendAttribute("class", getDataClass());
 



Mime
View raw message