mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-12 18:16:29 +00:00
From now on it is possible to specify annotations to be placed on the method
or the parameter of the generated getter/setter methods.
This commit is contained in:
1 parent
46d471e9c3
commit
fe7f0db2fc
33 files changed
+634
-108
No files matched your search
@@ -0,0 +1,15 @@
|
||||
import lombok.Setter;
|
||||
class SetterOnParam {
|
||||
@lombok.Setter(onParam=@SuppressWarnings("all")) int i;
|
||||
@lombok.Setter(onParam={@java.lang.SuppressWarnings("all")}) int j;
|
||||
}
|
||||
@lombok.Setter(onParam=@SuppressWarnings("all"))
|
||||
class SetterOnClassOnParam {
|
||||
int i;
|
||||
int j;
|
||||
}
|
||||
@lombok.Setter(onParam=@SuppressWarnings("all"))
|
||||
class SetterOnClassAndOnAFieldParam {
|
||||
int i;
|
||||
@lombok.Setter(onParam={@java.lang.SuppressWarnings("all")}) int j;
|
||||
}
|
||||
Reference in new issue
Block a user