From b081e6c968817fe5df57b359ad04fc3f4580d38c Mon Sep 17 00:00:00 2001 From: Roel Spilker Date: Mon, 23 Apr 2018 21:00:01 +0200 Subject: Allow onMethod and onParam in @Getter and @Setter if it is put on a type --- .../resource/after-delombok/GetterOnMethodErrors.java | 9 --------- .../resource/after-delombok/GetterOnMethodOnType.java | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 9 deletions(-) delete mode 100644 test/transform/resource/after-delombok/GetterOnMethodErrors.java create mode 100644 test/transform/resource/after-delombok/GetterOnMethodOnType.java (limited to 'test/transform/resource/after-delombok') diff --git a/test/transform/resource/after-delombok/GetterOnMethodErrors.java b/test/transform/resource/after-delombok/GetterOnMethodErrors.java deleted file mode 100644 index a69966ec..00000000 --- a/test/transform/resource/after-delombok/GetterOnMethodErrors.java +++ /dev/null @@ -1,9 +0,0 @@ -class PlaceFillerToMakeSurePositionIsRelevant { -} -class GetterOnMethodErrors { - private int test; - @java.lang.SuppressWarnings("all") - public int getTest() { - return this.test; - } -} diff --git a/test/transform/resource/after-delombok/GetterOnMethodOnType.java b/test/transform/resource/after-delombok/GetterOnMethodOnType.java new file mode 100644 index 00000000..625909c1 --- /dev/null +++ b/test/transform/resource/after-delombok/GetterOnMethodOnType.java @@ -0,0 +1,14 @@ +class GetterOnMethodOnType { + private int test; + private String name; + @Deprecated + @java.lang.SuppressWarnings("all") + public int getTest() { + return this.test; + } + @Deprecated + @java.lang.SuppressWarnings("all") + public String getName() { + return this.name; + } +} -- cgit