diff options
author | Roel Spilker <r.spilker@gmail.com> | 2010-11-02 20:39:58 +0100 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2010-11-02 20:39:58 +0100 |
commit | 17bcfda43b9e939ac22d5247ef98905741650432 (patch) | |
tree | 435ab418b82486b17931a2f9feb94b9eecc53940 /test/transform/resource/after-ecj/CleanupPlain.java | |
parent | 5897d9685e4f606319a9707ae22efe4740b3f630 (diff) | |
download | lombok-17bcfda43b9e939ac22d5247ef98905741650432.tar.gz lombok-17bcfda43b9e939ac22d5247ef98905741650432.tar.bz2 lombok-17bcfda43b9e939ac22d5247ef98905741650432.zip |
Issue 154: Add null-check to @Cleanup
Diffstat (limited to 'test/transform/resource/after-ecj/CleanupPlain.java')
-rw-r--r-- | test/transform/resource/after-ecj/CleanupPlain.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/transform/resource/after-ecj/CleanupPlain.java b/test/transform/resource/after-ecj/CleanupPlain.java index 6754b4f6..fe8d7571 100644 --- a/test/transform/resource/after-ecj/CleanupPlain.java +++ b/test/transform/resource/after-ecj/CleanupPlain.java @@ -18,12 +18,18 @@ class CleanupPlain { } finally { - out.close(); + if ((out != null)) + { + out.close(); + } } } finally { - in.close(); + if ((in != null)) + { + in.close(); + } } } }
\ No newline at end of file |