mirror of
https://github.com/tiennm99/lombok.git
synced 2026-05-31 04:23:16 +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:
@@ -0,0 +1,15 @@
|
||||
import lombok.Getter;
|
||||
class GetterOnMethod {
|
||||
@lombok.Getter(onMethod=@Deprecated) int i;
|
||||
@lombok.Getter(onMethod={@java.lang.Deprecated}) int j;
|
||||
}
|
||||
@lombok.Getter(onMethod=@Deprecated)
|
||||
class GetterOnClassOnMethod {
|
||||
int i;
|
||||
int j;
|
||||
}
|
||||
@lombok.Getter(onMethod=@Deprecated)
|
||||
class GetterOnClassAndOnAField {
|
||||
int i;
|
||||
@lombok.Getter(onMethod={@java.lang.Deprecated}) int j;
|
||||
}
|
||||
Reference in New Issue
Block a user