mirror of
https://github.com/apache/struts.git
synced 2026-08-07 15:46:57 +00:00
Fix meaningless close
This commit is contained in:
@@ -209,7 +209,6 @@ class JspReader {
|
||||
CharArrayWriter caw = new CharArrayWriter();
|
||||
while (!stop.equals(mark()))
|
||||
caw.write(nextChar());
|
||||
caw.close();
|
||||
reset(oldstart);
|
||||
return caw.toString();
|
||||
}
|
||||
@@ -595,7 +594,6 @@ class JspReader {
|
||||
char buf[] = new char[1024];
|
||||
for (int i = 0 ; (i = reader.read(buf)) != -1 ;)
|
||||
caw.write(buf, 0, i);
|
||||
caw.close();
|
||||
if (current == null) {
|
||||
current = new Mark(this, caw.toCharArray(), fileid,
|
||||
getFile(fileid), master, encoding);
|
||||
|
||||
@@ -324,7 +324,6 @@ class Parser implements TagConstants {
|
||||
++i;
|
||||
}
|
||||
}
|
||||
cw.close();
|
||||
return cw.toString();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user