aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok/CleanupName.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform/resource/after-delombok/CleanupName.java')
-rw-r--r--test/transform/resource/after-delombok/CleanupName.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/transform/resource/after-delombok/CleanupName.java b/test/transform/resource/after-delombok/CleanupName.java
index cd29eb68..0201008e 100644
--- a/test/transform/resource/after-delombok/CleanupName.java
+++ b/test/transform/resource/after-delombok/CleanupName.java
@@ -4,7 +4,9 @@ class CleanupName {
try {
System.out.println(o);
} finally {
- o.toString();
+ if (o != null) {
+ o.toString();
+ }
}
}
void test2() {
@@ -12,7 +14,9 @@ class CleanupName {
try {
System.out.println(o);
} finally {
- o.toString();
+ if (o != null) {
+ o.toString();
+ }
}
}
}