Skip to content

Commit

Permalink
Eliminate call to inefficient String(String) constructor.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/xalan/java/trunk@1225446 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Michael Glavassevich committed Dec 29, 2011
1 parent 162af60 commit c82fea0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/apache/xml/serializer/dom3/DOM3TreeWalker.java
Expand Up @@ -537,7 +537,7 @@ protected void serializeDocType(DocumentType node, boolean bStart)
dtd.append(fNewLine);
dtd.append(internalSubset);
dtd.append("]>");
dtd.append(new String(fNewLine));
dtd.append(fNewLine);

writer.write(dtd.toString());
writer.flush();
Expand Down

0 comments on commit c82fea0

Please sign in to comment.