Author: crossley Date: Wed Jan 12 22:13:26 2005 New Revision: 125044 URL: http://svn.apache.org/viewcvs?view=rev&rev=125044 Log: Merge more of the changes from trunk. Better building of string buffer.
Modified: cocoon/branches/BRANCH_2_1_X/tools/src/anttasks/SitemapTask.java Modified: cocoon/branches/BRANCH_2_1_X/tools/src/anttasks/SitemapTask.java Url: http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/tools/src/anttasks/SitemapTask.java?view=diff&rev=125044&p1=cocoon/branches/BRANCH_2_1_X/tools/src/anttasks/SitemapTask.java&r1=125043&p2=cocoon/branches/BRANCH_2_1_X/tools/src/anttasks/SitemapTask.java&r2=125044 ============================================================================== --- cocoon/branches/BRANCH_2_1_X/tools/src/anttasks/SitemapTask.java (original) +++ cocoon/branches/BRANCH_2_1_X/tools/src/anttasks/SitemapTask.java Wed Jan 12 22:13:26 2005 @@ -451,33 +451,30 @@ } Document doc = parent.getOwnerDocument(); Node node; - StringBuffer buffer = new StringBuffer(); // first check: deprecated? if ( SitemapTask.this.deprecated || this.getTagValue("deprecated", null) != null ) { indent(parent, 3); - buffer.append("The ") - .append(this.type) + StringBuffer buffer = new StringBuffer("The "); + buffer.append(this.type) .append(" ") .append(this.name) .append(" is deprecated"); node = doc.createComment(buffer.toString()); parent.appendChild(node); newLine(parent); - buffer = new StringBuffer(); } // unstable block? if ( !SitemapTask.this.stable ) { indent(parent, 3); - buffer.append("The ") - .append(this.type) + StringBuffer buffer = new StringBuffer("The "); + buffer.append(this.type) .append(" ") .append(this.name) .append(" is in an unstable block"); node = doc.createComment(buffer.toString()); parent.appendChild(node); newLine(parent); - buffer = new StringBuffer(); } indent(parent, 3);