Two minor optimizations in JspDocumentParser.processChars():
a) Replace repeated getter calls with a local variable.
b) No need to reallocate CharArrayWriter to clear it. You can call reset().

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1466224 13f79535-47bb-0310-9956-ffa450edef68
Minor optimization in Parser.parseXMLTemplateText():
No need to reallocate CharArrayWriter to clear it. You can call reset().

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1466228 13f79535-47bb-0310-9956-ffa450edef68