aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj/CleanupName.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform/resource/after-ecj/CleanupName.java')
-rw-r--r--test/transform/resource/after-ecj/CleanupName.java27
1 files changed, 27 insertions, 0 deletions
diff --git a/test/transform/resource/after-ecj/CleanupName.java b/test/transform/resource/after-ecj/CleanupName.java
new file mode 100644
index 00000000..944a81e1
--- /dev/null
+++ b/test/transform/resource/after-ecj/CleanupName.java
@@ -0,0 +1,27 @@
+class CleanupName {
+ CleanupName() {
+ super();
+ }
+ void test() {
+ @lombok.Cleanup("toString") Object o = "Hello World!";
+ try
+ {
+ System.out.println(o);
+ }
+ finally
+ {
+ o.toString();
+ }
+ }
+ void test2() {
+ @lombok.Cleanup(value = "toString") Object o = "Hello World too!";
+ try
+ {
+ System.out.println(o);
+ }
+ finally
+ {
+ o.toString();
+ }
+ }
+} \ No newline at end of file