diff options
Diffstat (limited to 'test/transform/resource')
15 files changed, 16 insertions, 57 deletions
diff --git a/test/transform/resource/after-delombok/DelegateRecursion.java b/test/transform/resource/after-delombok/DelegateRecursion.java deleted file mode 100644 index d86d6044..00000000 --- a/test/transform/resource/after-delombok/DelegateRecursion.java +++ /dev/null @@ -1,20 +0,0 @@ -//ignore - This test fails, but, fixing it is going to take a long time and we don't have it in the planning. Having a failing test is very annoying for e.g. 'ant test'. - -class DelegateRecursionOuterMost { - private final DelegateRecursionCenter center = new DelegateRecursionCenter(); - @java.lang.SuppressWarnings("all") - public void innerMostMethod() { - this.center.innerMostMethod(); - } -} -class DelegateRecursionCenter { - private final DelegateRecursionInnerMost inner = new DelegateRecursionInnerMost(); - @java.lang.SuppressWarnings("all") - public void innerMostMethod() { - this.inner.innerMostMethod(); - } -} -class DelegateRecursionInnerMost { - public void innerMostMethod() { - } -}
\ No newline at end of file diff --git a/test/transform/resource/after-ecj/DelegateOnGetterNone.java b/test/transform/resource/after-ecj/DelegateOnGetterNone.java index a5f52a42..0cfb02c0 100644 --- a/test/transform/resource/after-ecj/DelegateOnGetterNone.java +++ b/test/transform/resource/after-ecj/DelegateOnGetterNone.java @@ -1,5 +1,5 @@ import lombok.AccessLevel; -import lombok.Delegate; +import lombok.experimental.Delegate; import lombok.Getter; @Getter class DelegateOnGetterNone { private interface Bar { diff --git a/test/transform/resource/after-ecj/DelegateOnMethods.java b/test/transform/resource/after-ecj/DelegateOnMethods.java index 928ea32e..6560657c 100644 --- a/test/transform/resource/after-ecj/DelegateOnMethods.java +++ b/test/transform/resource/after-ecj/DelegateOnMethods.java @@ -1,4 +1,4 @@ -import lombok.Delegate; +import lombok.experimental.Delegate; abstract class DelegateOnMethods { public static interface Bar { void bar(java.util.ArrayList<java.lang.String> list); diff --git a/test/transform/resource/after-ecj/DelegateRecursion.java b/test/transform/resource/after-ecj/DelegateRecursion.java deleted file mode 100644 index 7d1705a7..00000000 --- a/test/transform/resource/after-ecj/DelegateRecursion.java +++ /dev/null @@ -1,26 +0,0 @@ -import lombok.Delegate; -class DelegateRecursionOuterMost { - private final @Delegate DelegateRecursionCenter center = new DelegateRecursionCenter(); - DelegateRecursionOuterMost() { - super(); - } - public @java.lang.SuppressWarnings("all") void innerMostMethod() { - this.center.innerMostMethod(); - } -} -class DelegateRecursionCenter { - private final @Delegate DelegateRecursionInnerMost inner = new DelegateRecursionInnerMost(); - DelegateRecursionCenter() { - super(); - } - public @java.lang.SuppressWarnings("all") void innerMostMethod() { - this.inner.innerMostMethod(); - } -} -class DelegateRecursionInnerMost { - DelegateRecursionInnerMost() { - super(); - } - public void innerMostMethod() { - } -} diff --git a/test/transform/resource/after-ecj/DelegateTypesAndExcludes.java b/test/transform/resource/after-ecj/DelegateTypesAndExcludes.java index 45d4edc7..86f54139 100644 --- a/test/transform/resource/after-ecj/DelegateTypesAndExcludes.java +++ b/test/transform/resource/after-ecj/DelegateTypesAndExcludes.java @@ -1,4 +1,4 @@ -import lombok.Delegate; +import lombok.experimental.Delegate; class DelegatePlain { private static class FooImpl implements Foo { private FooImpl() { diff --git a/test/transform/resource/after-ecj/DelegateWithDeprecated.java b/test/transform/resource/after-ecj/DelegateWithDeprecated.java index 9c3623d8..71eb7889 100644 --- a/test/transform/resource/after-ecj/DelegateWithDeprecated.java +++ b/test/transform/resource/after-ecj/DelegateWithDeprecated.java @@ -1,4 +1,4 @@ -import lombok.Delegate; +import lombok.experimental.Delegate; class DelegateWithDeprecated { private interface Bar { @Deprecated void deprecatedAnnotation(); diff --git a/test/transform/resource/before/DelegateOnGetterNone.java b/test/transform/resource/before/DelegateOnGetterNone.java index 9db0ea38..f9a97e6a 100644 --- a/test/transform/resource/before/DelegateOnGetterNone.java +++ b/test/transform/resource/before/DelegateOnGetterNone.java @@ -1,5 +1,5 @@ import lombok.AccessLevel; -import lombok.Delegate; +import lombok.experimental.Delegate; import lombok.Getter; @Getter diff --git a/test/transform/resource/before/DelegateOnMethods.java b/test/transform/resource/before/DelegateOnMethods.java index 1606e18c..79189cc1 100644 --- a/test/transform/resource/before/DelegateOnMethods.java +++ b/test/transform/resource/before/DelegateOnMethods.java @@ -1,4 +1,4 @@ -import lombok.Delegate; +import lombok.experimental.Delegate; abstract class DelegateOnMethods { diff --git a/test/transform/resource/before/DelegateOnStatic.java b/test/transform/resource/before/DelegateOnStatic.java index 84d99636..7a420b20 100644 --- a/test/transform/resource/before/DelegateOnStatic.java +++ b/test/transform/resource/before/DelegateOnStatic.java @@ -1,5 +1,5 @@ //skip compare content -import lombok.Delegate; +import lombok.experimental.Delegate; import lombok.Getter; class DelegateOnStatic { diff --git a/test/transform/resource/before/DelegateRecursion.java b/test/transform/resource/before/DelegateRecursion.java index 3ac6d666..d74107e2 100644 --- a/test/transform/resource/before/DelegateRecursion.java +++ b/test/transform/resource/before/DelegateRecursion.java @@ -1,4 +1,5 @@ -import lombok.Delegate; +//skip compare content: This test is to see if the 'delegate recursion is not supported' error pops up. +import lombok.experimental.Delegate; class DelegateRecursionOuterMost { @Delegate private final DelegateRecursionCenter center = new DelegateRecursionCenter(); @@ -12,4 +13,4 @@ class DelegateRecursionCenter { class DelegateRecursionInnerMost { public void innerMostMethod() { } -}
\ No newline at end of file +} diff --git a/test/transform/resource/before/DelegateTypesAndExcludes.java b/test/transform/resource/before/DelegateTypesAndExcludes.java index da7fc4cb..164261d8 100644 --- a/test/transform/resource/before/DelegateTypesAndExcludes.java +++ b/test/transform/resource/before/DelegateTypesAndExcludes.java @@ -1,4 +1,4 @@ -import lombok.Delegate; +import lombok.experimental.Delegate; class DelegatePlain { @Delegate(types = Bar.class) private final BarImpl bar = new BarImpl(); diff --git a/test/transform/resource/before/DelegateWithDeprecated.java b/test/transform/resource/before/DelegateWithDeprecated.java index 064e951d..a0deb788 100644 --- a/test/transform/resource/before/DelegateWithDeprecated.java +++ b/test/transform/resource/before/DelegateWithDeprecated.java @@ -1,4 +1,4 @@ -import lombok.Delegate; +import lombok.experimental.Delegate; class DelegateWithDeprecated { @Delegate private Bar bar; diff --git a/test/transform/resource/messages-delombok/DelegateRecursion.java.messages b/test/transform/resource/messages-delombok/DelegateRecursion.java.messages new file mode 100644 index 00000000..bf4d8410 --- /dev/null +++ b/test/transform/resource/messages-delombok/DelegateRecursion.java.messages @@ -0,0 +1 @@ +4 @Delegate does not support recursion (delegating to a type that itself has @Delegate members). Member "inner" is @Delegate in type "DelegateRecursionCenter" diff --git a/test/transform/resource/messages-ecj/DelegateOnGetter.java.messages b/test/transform/resource/messages-ecj/DelegateOnGetter.java.messages new file mode 100644 index 00000000..16453094 --- /dev/null +++ b/test/transform/resource/messages-ecj/DelegateOnGetter.java.messages @@ -0,0 +1,2 @@ +1 The type Delegate is deprecated +6 The type Delegate is deprecated diff --git a/test/transform/resource/messages-ecj/DelegateRecursion.java.messages b/test/transform/resource/messages-ecj/DelegateRecursion.java.messages new file mode 100644 index 00000000..bf4d8410 --- /dev/null +++ b/test/transform/resource/messages-ecj/DelegateRecursion.java.messages @@ -0,0 +1 @@ +4 @Delegate does not support recursion (delegating to a type that itself has @Delegate members). Member "inner" is @Delegate in type "DelegateRecursionCenter" |