[Yanel-commits] rev 42342 -
public/yanel/trunk/src/contributions/resources/data-repo-sitetree/src/java/org/wyona/yanel/impl/resources/navigation
michi at wyona.com
michi at wyona.com
Thu Apr 9 15:36:15 CEST 2009
Author: michi
Date: 2009-04-09 15:36:15 +0200 (Thu, 09 Apr 2009)
New Revision: 42342
Modified:
public/yanel/trunk/src/contributions/resources/data-repo-sitetree/src/java/org/wyona/yanel/impl/resources/navigation/DataRepoSitetreeResource.java
Log:
StringBuffer replaced by StringBuilder and TODO improved
Modified: public/yanel/trunk/src/contributions/resources/data-repo-sitetree/src/java/org/wyona/yanel/impl/resources/navigation/DataRepoSitetreeResource.java
===================================================================
--- public/yanel/trunk/src/contributions/resources/data-repo-sitetree/src/java/org/wyona/yanel/impl/resources/navigation/DataRepoSitetreeResource.java 2009-04-09 13:34:49 UTC (rev 42341)
+++ public/yanel/trunk/src/contributions/resources/data-repo-sitetree/src/java/org/wyona/yanel/impl/resources/navigation/DataRepoSitetreeResource.java 2009-04-09 13:36:15 UTC (rev 42342)
@@ -89,7 +89,7 @@
//log.error("DEBUG: Path: " + path);
Sitetree sitetree = getRealm().getRepoNavigation();
Node node = sitetree.getNode(getRealm(), path);
- StringBuffer sb = new StringBuffer("");
+ StringBuilder sb = new StringBuilder("");
// TODO: Check for statements "parentOf" for this resource
/*
@@ -108,7 +108,7 @@
if (node.isCollection()) {
if (showAllSubnodes) {
sb.append("<collection path=\"" + path + "\" name=\"" + node.getName() + "\">");
- // TODO: ...
+ // TODO: There seems to be a problem re special characters
sb.append("<label><![CDATA[" + node.getName() + "]]></label>");
//sb.append("<label><![CDATA[" + node.getLabel() + "]]></label>");
}
More information about the Yanel-commits
mailing list