diff options
Diffstat (limited to 'test/transform/resource/after-delombok/CleanupPlain.java')
-rw-r--r-- | test/transform/resource/after-delombok/CleanupPlain.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/transform/resource/after-delombok/CleanupPlain.java b/test/transform/resource/after-delombok/CleanupPlain.java index 35d51543..1a19442f 100644 --- a/test/transform/resource/after-delombok/CleanupPlain.java +++ b/test/transform/resource/after-delombok/CleanupPlain.java @@ -9,10 +9,14 @@ class CleanupPlain { out.flush(); } } finally { - out.close(); + if (out != null) { + out.close(); + } } } finally { - in.close(); + if (in != null) { + in.close(); + } } } } |