mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 02:16:18 +00:00
[i623] added eclipse code for generating @javax.annotation.Generated, and refactored java impl to reduce DRY violations. -f pretty now includes skipping generation of this annotation, and updated ALL the test cases.
This commit is contained in:
1 parent
7efbecfe49
commit
a7bd812893
193 files changed
+1199
-613
No files matched your search
@@ -2,18 +2,18 @@
|
||||
private int x;
|
||||
private int y;
|
||||
private final String z;
|
||||
public @java.lang.SuppressWarnings("all") void setX(final int x) {
|
||||
public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") void setX(final int x) {
|
||||
this.x = x;
|
||||
}
|
||||
public @java.lang.SuppressWarnings("all") void setY(final int y) {
|
||||
public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") void setY(final int y) {
|
||||
this.y = y;
|
||||
}
|
||||
public @java.lang.Override @java.lang.SuppressWarnings("all") boolean equals(final java.lang.Object o) {
|
||||
public @java.lang.Override @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") boolean equals(final java.lang.Object o) {
|
||||
if ((o == this))
|
||||
return true;
|
||||
if ((! (o instanceof DataWithGetter)))
|
||||
return false;
|
||||
final @java.lang.SuppressWarnings("all") DataWithGetter other = (DataWithGetter) o;
|
||||
final DataWithGetter other = (DataWithGetter) o;
|
||||
if ((! other.canEqual((java.lang.Object) this)))
|
||||
return false;
|
||||
if ((this.getX() != other.getX()))
|
||||
@@ -26,10 +26,10 @@
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
protected @java.lang.SuppressWarnings("all") boolean canEqual(final java.lang.Object other) {
|
||||
protected @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") boolean canEqual(final java.lang.Object other) {
|
||||
return (other instanceof DataWithGetter);
|
||||
}
|
||||
public @java.lang.Override @java.lang.SuppressWarnings("all") int hashCode() {
|
||||
public @java.lang.Override @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") int hashCode() {
|
||||
final int PRIME = 59;
|
||||
int result = 1;
|
||||
result = ((result * PRIME) + this.getX());
|
||||
@@ -38,20 +38,20 @@
|
||||
result = ((result * PRIME) + (($z == null) ? 0 : $z.hashCode()));
|
||||
return result;
|
||||
}
|
||||
public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
|
||||
public @java.lang.Override @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") java.lang.String toString() {
|
||||
return (((((("DataWithGetter(x=" + this.getX()) + ", y=") + this.getY()) + ", z=") + this.getZ()) + ")");
|
||||
}
|
||||
public @java.beans.ConstructorProperties({"z"}) @java.lang.SuppressWarnings("all") DataWithGetter(final String z) {
|
||||
public @java.beans.ConstructorProperties({"z"}) @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") DataWithGetter(final String z) {
|
||||
super();
|
||||
this.z = z;
|
||||
}
|
||||
public @java.lang.SuppressWarnings("all") int getX() {
|
||||
public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") int getX() {
|
||||
return this.x;
|
||||
}
|
||||
public @java.lang.SuppressWarnings("all") int getY() {
|
||||
public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") int getY() {
|
||||
return this.y;
|
||||
}
|
||||
public @java.lang.SuppressWarnings("all") String getZ() {
|
||||
public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") String getZ() {
|
||||
return this.z;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user