aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj/CleanupName.java
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2010-11-02 20:39:58 +0100
committerRoel Spilker <r.spilker@gmail.com>2010-11-02 20:39:58 +0100
commit17bcfda43b9e939ac22d5247ef98905741650432 (patch)
tree435ab418b82486b17931a2f9feb94b9eecc53940 /test/transform/resource/after-ecj/CleanupName.java
parent5897d9685e4f606319a9707ae22efe4740b3f630 (diff)
downloadlombok-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/CleanupName.java')
-rw-r--r--test/transform/resource/after-ecj/CleanupName.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/test/transform/resource/after-ecj/CleanupName.java b/test/transform/resource/after-ecj/CleanupName.java
index 944a81e1..4011721b 100644
--- a/test/transform/resource/after-ecj/CleanupName.java
+++ b/test/transform/resource/after-ecj/CleanupName.java
@@ -10,7 +10,10 @@ class CleanupName {
}
finally
{
- o.toString();
+ if ((o != null))
+ {
+ o.toString();
+ }
}
}
void test2() {
@@ -21,7 +24,10 @@ class CleanupName {
}
finally
{
- o.toString();
+ if ((o != null))
+ {
+ o.toString();
+ }
}
}
} \ No newline at end of file