aboutsummaryrefslogtreecommitdiff
path: root/test/transform
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform')
-rw-r--r--test/transform/resource/after-delombok/DelegateAlreadyImplemented.java43
-rw-r--r--test/transform/resource/after-ecj/DelegateAlreadyImplemented.java29
-rw-r--r--test/transform/resource/before/DelegateAlreadyImplemented.java45
3 files changed, 117 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/DelegateAlreadyImplemented.java b/test/transform/resource/after-delombok/DelegateAlreadyImplemented.java
new file mode 100644
index 00000000..c876d8ce
--- /dev/null
+++ b/test/transform/resource/after-delombok/DelegateAlreadyImplemented.java
@@ -0,0 +1,43 @@
+public class DelegateAlreadyImplemented<T> {
+ private A<Integer, T> a;
+
+ public void a() {
+ }
+
+ public void b(java.util.List<String> l) {
+ }
+
+ public void c(java.util.List<Integer> l, String[] a, Integer... varargs) {
+ }
+
+ public void d(String[][][][] d) {
+ }
+
+ public <Y> void e(Y x) {
+ }
+
+ @SuppressWarnings("unchecked")
+ public void f(T s, java.util.List<T> l, T[] a, T... varargs) {
+ }
+
+ public void g(Number g) {
+ }
+}
+
+interface A<T, T2> {
+ void a();
+
+ void b(java.util.List<T> l);
+
+ @SuppressWarnings("unchecked")
+ void c(java.util.List<T> l, String[] a, T... varargs);
+
+ void d(String[][][][] d);
+
+ <X> X e(X x);
+
+ @SuppressWarnings("unchecked")
+ void f(T2 s, java.util.List<T2> l, T2[] a, T2... varargs);
+
+ <G extends Number> void g(G g);
+} \ No newline at end of file
diff --git a/test/transform/resource/after-ecj/DelegateAlreadyImplemented.java b/test/transform/resource/after-ecj/DelegateAlreadyImplemented.java
new file mode 100644
index 00000000..1e12f405
--- /dev/null
+++ b/test/transform/resource/after-ecj/DelegateAlreadyImplemented.java
@@ -0,0 +1,29 @@
+public class DelegateAlreadyImplemented<T> {
+ private @lombok.experimental.Delegate A<Integer, T> a;
+ public DelegateAlreadyImplemented() {
+ super();
+ }
+ public void a() {
+ }
+ public void b(java.util.List<String> l) {
+ }
+ public void c(java.util.List<Integer> l, String[] a, Integer... varargs) {
+ }
+ public void d(String[][][][] d) {
+ }
+ public <Y>void e(Y x) {
+ }
+ public @SuppressWarnings("unchecked") void f(T s, java.util.List<T> l, T[] a, T... varargs) {
+ }
+ public void g(Number g) {
+ }
+}
+interface A<T, T2> {
+ public void a();
+ public void b(java.util.List<T> l);
+ public @SuppressWarnings("unchecked") void c(java.util.List<T> l, String[] a, T... varargs);
+ public void d(String[][][][] d);
+ public <X>X e(X x);
+ public @SuppressWarnings("unchecked") void f(T2 s, java.util.List<T2> l, T2[] a, T2... varargs);
+ public <G extends Number>void g(G g);
+} \ No newline at end of file
diff --git a/test/transform/resource/before/DelegateAlreadyImplemented.java b/test/transform/resource/before/DelegateAlreadyImplemented.java
new file mode 100644
index 00000000..c43c1949
--- /dev/null
+++ b/test/transform/resource/before/DelegateAlreadyImplemented.java
@@ -0,0 +1,45 @@
+public class DelegateAlreadyImplemented<T> {
+
+ @lombok.experimental.Delegate
+ private A<Integer, T> a;
+
+ public void a() {
+ }
+
+ public void b(java.util.List<String> l) {
+ }
+
+ public void c(java.util.List<Integer> l, String[] a, Integer... varargs) {
+ }
+
+ public void d(String[][][][] d) {
+ }
+
+ public <Y> void e(Y x) {
+ }
+
+ @SuppressWarnings("unchecked")
+ public void f(T s, java.util.List<T> l, T[] a, T... varargs) {
+ }
+
+ public void g(Number g) {
+ }
+}
+
+interface A<T, T2> {
+ public void a();
+
+ public void b(java.util.List<T> l);
+
+ @SuppressWarnings("unchecked")
+ public void c(java.util.List<T> l, String[] a, T... varargs);
+
+ public void d(String[][][][] d);
+
+ public <X> X e(X x);
+
+ @SuppressWarnings("unchecked")
+ public void f(T2 s, java.util.List<T2> l, T2[] a, T2... varargs);
+
+ public <G extends Number> void g(G g);
+} \ No newline at end of file