toString: close tabbed print writer to flush it

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@1256 379699f6-c40d-0410-875b-85095c16579e
master
hoenicke 25 years ago
parent aca625aa34
commit bf597fea43
  1. 1
      jode/jode/expr/Expression.java

@ -320,6 +320,7 @@ public abstract class Expression {
java.io.StringWriter strw = new java.io.StringWriter(); java.io.StringWriter strw = new java.io.StringWriter();
TabbedPrintWriter writer = new TabbedPrintWriter(strw); TabbedPrintWriter writer = new TabbedPrintWriter(strw);
dumpExpression(writer); dumpExpression(writer);
writer.close();
return strw.toString(); return strw.toString();
} catch (java.io.IOException ex) { } catch (java.io.IOException ex) {
return "/*IOException*/"+super.toString(); return "/*IOException*/"+super.toString();

Loading…
Cancel
Save