mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 10:15:53 +00:00
Added more tests, one of which tests usage of .getX() in toString, equals, and hashCode, which isn't fully working yet, so this test still fails.
This commit is contained in:
1 parent
483e23d385
commit
7c47aa1125
9 files changed
+268
No files matched your search
@@ -0,0 +1,28 @@
|
||||
import lombok.Getter;
|
||||
import lombok.AccessLevel;
|
||||
class MultiFieldGetter {
|
||||
@Getter(AccessLevel.PROTECTED) int x;
|
||||
@Getter(AccessLevel.PROTECTED) int y;
|
||||
MultiFieldGetter() {
|
||||
super();
|
||||
}
|
||||
protected @java.lang.SuppressWarnings("all") int getX() {
|
||||
return this.x;
|
||||
}
|
||||
protected @java.lang.SuppressWarnings("all") int getY() {
|
||||
return this.y;
|
||||
}
|
||||
}
|
||||
@Getter class MultiFieldGetter2 {
|
||||
@Getter(AccessLevel.PACKAGE) int x;
|
||||
@Getter(AccessLevel.PACKAGE) int y;
|
||||
MultiFieldGetter2() {
|
||||
super();
|
||||
}
|
||||
@java.lang.SuppressWarnings("all") int getX() {
|
||||
return this.x;
|
||||
}
|
||||
@java.lang.SuppressWarnings("all") int getY() {
|
||||
return this.y;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user