diff options
Diffstat (limited to 'test/transform/resource/after-delombok')
5 files changed, 115 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/Constructors.java b/test/transform/resource/after-delombok/Constructors.java index d4633dbc..12aa75ab 100644 --- a/test/transform/resource/after-delombok/Constructors.java +++ b/test/transform/resource/after-delombok/Constructors.java @@ -28,6 +28,16 @@ class RequiredArgsConstructorStaticName { return new RequiredArgsConstructorStaticName(x); } } +class RequiredArgsConstructorWithAnnotations { + final int x; + String name; + @java.beans.ConstructorProperties({"x"}) + @Deprecated + @java.lang.SuppressWarnings("all") + public RequiredArgsConstructorWithAnnotations(final int x) { + this.x = x; + } +} class AllArgsConstructor1 { final int x; String name; diff --git a/test/transform/resource/after-delombok/GetterOnMethod.java b/test/transform/resource/after-delombok/GetterOnMethod.java new file mode 100644 index 00000000..4a5b3622 --- /dev/null +++ b/test/transform/resource/after-delombok/GetterOnMethod.java @@ -0,0 +1,24 @@ +class GetterOnMethod { + int i; + int j; + int k; + public @interface Test { + } + @Deprecated + @java.lang.SuppressWarnings("all") + public int getI() { + return this.i; + } + @java.lang.Deprecated + @Test + @java.lang.SuppressWarnings("all") + public int getJ() { + return this.j; + } + @java.lang.Deprecated + @Test + @java.lang.SuppressWarnings("all") + public int getK() { + return this.k; + } +} diff --git a/test/transform/resource/after-delombok/GetterOnMethodErrors.java b/test/transform/resource/after-delombok/GetterOnMethodErrors.java new file mode 100644 index 00000000..86813bd2 --- /dev/null +++ b/test/transform/resource/after-delombok/GetterOnMethodErrors.java @@ -0,0 +1,9 @@ +class PlaceFillerToMakeSurePositionIsRelevant { +} +class GetterOnMethodErrors { + private int test; + @java.lang.SuppressWarnings("all") + public int getTest() { + return this.test; + } +}
\ No newline at end of file diff --git a/test/transform/resource/after-delombok/GetterOnMethodErrors2.java b/test/transform/resource/after-delombok/GetterOnMethodErrors2.java new file mode 100644 index 00000000..639022d0 --- /dev/null +++ b/test/transform/resource/after-delombok/GetterOnMethodErrors2.java @@ -0,0 +1,48 @@ +class GetterOnMethodErrors2 { + private int bad1; + private int bad2; + private int bad3; + private int bad4; + private int good1; + private int good2; + private int good3; + private int good4; + public @interface Test { + } + @java.lang.SuppressWarnings("all") + public int getBad1() { + return this.bad1; + } + @java.lang.SuppressWarnings("all") + public int getBad2() { + return this.bad2; + } + @Deprecated + @java.lang.SuppressWarnings("all") + public int getBad3() { + return this.bad3; + } + @java.lang.SuppressWarnings("all") + public int getBad4() { + return this.bad4; + } + @java.lang.SuppressWarnings("all") + public int getGood1() { + return this.good1; + } + @java.lang.SuppressWarnings("all") + public int getGood2() { + return this.good2; + } + @Deprecated + @java.lang.SuppressWarnings("all") + public int getGood3() { + return this.good3; + } + @Deprecated + @Test + @java.lang.SuppressWarnings("all") + public int getGood4() { + return this.good4; + } +} diff --git a/test/transform/resource/after-delombok/SetterOnMethodOnParam.java b/test/transform/resource/after-delombok/SetterOnMethodOnParam.java new file mode 100644 index 00000000..555bf698 --- /dev/null +++ b/test/transform/resource/after-delombok/SetterOnMethodOnParam.java @@ -0,0 +1,24 @@ +class SetterOnMethodOnParam { + int i; + int j; + int k; + public @interface Test { + } + @Deprecated + @java.lang.SuppressWarnings("all") + public void setI(final int i) { + this.i = i; + } + @java.lang.Deprecated + @Test + @java.lang.SuppressWarnings("all") + public void setJ(@Test final int j) { + this.j = j; + } + @java.lang.Deprecated + @Test + @java.lang.SuppressWarnings("all") + public void setK(@Test final int k) { + this.k = k; + } +} |