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. --- test/transform/resource/before/SetterOnMethod.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test/transform/resource/before/SetterOnMethod.java (limited to 'test/transform/resource/before/SetterOnMethod.java') diff --git a/test/transform/resource/before/SetterOnMethod.java b/test/transform/resource/before/SetterOnMethod.java new file mode 100644 index 00000000..d680b34b --- /dev/null +++ b/test/transform/resource/before/SetterOnMethod.java @@ -0,0 +1,15 @@ +import lombok.Setter; +class SetterOnMethod { + @lombok.Setter(onMethod=@Deprecated) int i; + @lombok.Setter(onMethod={@java.lang.Deprecated}) int j; +} +@lombok.Setter(onMethod=@Deprecated) +class SetterOnClassOnMethod { + int i; + int j; +} +@lombok.Setter(onMethod=@Deprecated) +class SetterOnClassAndOnAField { + int i; + @lombok.Setter(onMethod={@java.lang.Deprecated}) int j; +} -- cgit