From fe7f0db2fce7b4c80853b9aed100908ff1f55f40 Mon Sep 17 00:00:00 2001 From: Roel Spilker Date: Wed, 10 Nov 2010 01:44:04 +0100 Subject: From now on it is possible to specify annotations to be placed on the method or the parameter of the generated getter/setter methods. --- .../resource/after-delombok/SetterOnMethod.java | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 test/transform/resource/after-delombok/SetterOnMethod.java (limited to 'test/transform/resource/after-delombok/SetterOnMethod.java') diff --git a/test/transform/resource/after-delombok/SetterOnMethod.java b/test/transform/resource/after-delombok/SetterOnMethod.java new file mode 100644 index 00000000..b261ce92 --- /dev/null +++ b/test/transform/resource/after-delombok/SetterOnMethod.java @@ -0,0 +1,39 @@ +class SetterOnMethod { + int i; + int j; + @Deprecated + @java.lang.SuppressWarnings("all") + public void setI(final int i) { + this.i = i; + } + @java.lang.Deprecated + @java.lang.SuppressWarnings("all") + public void setJ(final int j) { + this.j = j; + } +} +class SetterOnClassOnMethod { + int i; + int j; + @java.lang.SuppressWarnings("all") + public void setI(final int i) { + this.i = i; + } + @java.lang.SuppressWarnings("all") + public void setJ(final int j) { + this.j = j; + } +} +class SetterOnClassAndOnAField { + int i; + int j; + @java.lang.SuppressWarnings("all") + public void setI(final int i) { + this.i = i; + } + @java.lang.Deprecated + @java.lang.SuppressWarnings("all") + public void setJ(final int j) { + this.j = j; + } +} \ No newline at end of file -- cgit