mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 06:15:41 +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,40 @@
|
||||
import lombok.Getter;
|
||||
class GetterOnMethod {
|
||||
@lombok.Getter() int i;
|
||||
@lombok.Getter() int j;
|
||||
public @Deprecated @java.lang.SuppressWarnings("all") int getI() {
|
||||
return this.i;
|
||||
}
|
||||
public @java.lang.Deprecated @java.lang.SuppressWarnings("all") int getJ() {
|
||||
return this.j;
|
||||
}
|
||||
GetterOnMethod() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
@lombok.Getter() class GetterOnClassOnMethod {
|
||||
int i;
|
||||
int j;
|
||||
public @java.lang.SuppressWarnings("all") int getI() {
|
||||
return this.i;
|
||||
}
|
||||
public @java.lang.SuppressWarnings("all") int getJ() {
|
||||
return this.j;
|
||||
}
|
||||
GetterOnClassOnMethod() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
@lombok.Getter() class GetterOnClassAndOnAField {
|
||||
int i;
|
||||
@lombok.Getter() int j;
|
||||
public @java.lang.Deprecated @java.lang.SuppressWarnings("all") int getJ() {
|
||||
return this.j;
|
||||
}
|
||||
public @java.lang.SuppressWarnings("all") int getI() {
|
||||
return this.i;
|
||||
}
|
||||
GetterOnClassAndOnAField() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user