diff options
-rw-r--r-- | src/delombok/lombok/delombok/Delombok.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/delombok/lombok/delombok/Delombok.java b/src/delombok/lombok/delombok/Delombok.java index fb93b1ce..1bc550e1 100644 --- a/src/delombok/lombok/delombok/Delombok.java +++ b/src/delombok/lombok/delombok/Delombok.java @@ -399,7 +399,11 @@ public class Delombok { try { result.print(writer); } finally { - writer.close(); + if (output != null) { + writer.close(); + } else { + writer.flush(); + } } } delegate.close(); |