mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-15 10:15:19 +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
@@ -182,3 +182,55 @@ final class Data4 extends java.util.Timer {
|
||||
return result;
|
||||
}
|
||||
}
|
||||
class Data5 {
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public Data5() {
|
||||
}
|
||||
@java.lang.Override
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public boolean equals(final java.lang.Object o) {
|
||||
if (o == this) return true;
|
||||
if (!(o instanceof Data5)) return false;
|
||||
final Data5 other = (Data5)o;
|
||||
if (!other.canEqual(this)) return false;
|
||||
return true;
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public boolean canEqual(final java.lang.Object other) {
|
||||
return other instanceof Data5;
|
||||
}
|
||||
@java.lang.Override
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public int hashCode() {
|
||||
int result = 1;
|
||||
return result;
|
||||
}
|
||||
@java.lang.Override
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public java.lang.String toString() {
|
||||
return "Data5()";
|
||||
}
|
||||
}
|
||||
final class Data6 {
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public Data6() {
|
||||
}
|
||||
@java.lang.Override
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public boolean equals(final java.lang.Object o) {
|
||||
if (o == this) return true;
|
||||
if (!(o instanceof Data6)) return false;
|
||||
return true;
|
||||
}
|
||||
@java.lang.Override
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public int hashCode() {
|
||||
int result = 1;
|
||||
return result;
|
||||
}
|
||||
@java.lang.Override
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public java.lang.String toString() {
|
||||
return "Data6()";
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user