From 859cb5cf8c4b8beb7a93336b5484414c7ee42c05 Mon Sep 17 00:00:00 2001 From: Werner Dietl Date: Thu, 30 Aug 2018 00:09:09 -0400 Subject: First attempt at adding Getter test cases. --- .../resource/after-delombok/GetterTypeAnnosCopy.java | 18 ++++++++++++++++++ .../resource/after-delombok/GetterTypeAnnosNoCopy.java | 17 +++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 test/transform/resource/after-delombok/GetterTypeAnnosCopy.java create mode 100644 test/transform/resource/after-delombok/GetterTypeAnnosNoCopy.java (limited to 'test/transform/resource/after-delombok') diff --git a/test/transform/resource/after-delombok/GetterTypeAnnosCopy.java b/test/transform/resource/after-delombok/GetterTypeAnnosCopy.java new file mode 100644 index 00000000..cde6cbdd --- /dev/null +++ b/test/transform/resource/after-delombok/GetterTypeAnnosCopy.java @@ -0,0 +1,18 @@ +import java.lang.annotation.ElementType; +import java.lang.annotation.Target; +import java.util.List; + +@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER}) +@interface TA { +} + +class GetterTypeAnnos { + @TA + List<@TA String> foo; + + @TA + @java.lang.SuppressWarnings("all") + public List<@TA String> getFoo() { + return this.foo; + } +} diff --git a/test/transform/resource/after-delombok/GetterTypeAnnosNoCopy.java b/test/transform/resource/after-delombok/GetterTypeAnnosNoCopy.java new file mode 100644 index 00000000..58054de6 --- /dev/null +++ b/test/transform/resource/after-delombok/GetterTypeAnnosNoCopy.java @@ -0,0 +1,17 @@ +import java.lang.annotation.ElementType; +import java.lang.annotation.Target; +import java.util.List; + +@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER}) +@interface TA { +} + +class GetterTypeAnnos { + @TA + List<@TA String> foo; + + @java.lang.SuppressWarnings("all") + public List<@TA String> getFoo() { + return this.foo; + } +} -- cgit