bugfix 1626107

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@1404 379699f6-c40d-0410-875b-85095c16579e
master
asal 18 years ago
parent 2610837e4e
commit 0526241d2f
  1. 2
      jode/src/net/sf/jode/decompiler/ClassAnalyzer.java
  2. 7
      jode/src/net/sf/jode/decompiler/TabbedPrintWriter.java

@ -670,7 +670,7 @@ public class ClassAnalyzer
dumpSource(writer, pl, 0.8, 0.2); dumpSource(writer, pl, 0.8, 0.2);
if (pl != null) if (pl != null)
pl.updateProgress(1.0, name); pl.updateProgress(1.0, name);
writer.close(); writer.flush();
} }
public boolean isScopeOf(Object obj, int scopeType) { public boolean isScopeOf(Object obj, int scopeType) {

@ -851,9 +851,14 @@ class NlRemover extends Writer {
} }
public void flush() throws IOException { public void flush() throws IOException {
if (out != null) if (out != null) {
while (pendingNL > 0) {
out.write('\n');
pendingNL--;
}
out.flush(); out.flush();
} }
}
public void write(int x) throws IOException { public void write(int x) throws IOException {
switch ((char)x) { switch ((char)x) {

Loading…
Cancel
Save