mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 16:17:34 +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
@@ -4,7 +4,7 @@
|
||||
GetterLazyEahcToString() {
|
||||
super();
|
||||
}
|
||||
public @java.lang.SuppressWarnings("all") String getValue() {
|
||||
public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") String getValue() {
|
||||
java.lang.Object value = this.value.get();
|
||||
if ((value == null))
|
||||
{
|
||||
@@ -21,15 +21,15 @@
|
||||
}
|
||||
return (String) ((value == this.value) ? null : value);
|
||||
}
|
||||
public @java.lang.SuppressWarnings("all") String getValue2() {
|
||||
public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") String getValue2() {
|
||||
return this.value2;
|
||||
}
|
||||
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 GetterLazyEahcToString)))
|
||||
return false;
|
||||
final @java.lang.SuppressWarnings("all") GetterLazyEahcToString other = (GetterLazyEahcToString) o;
|
||||
final GetterLazyEahcToString other = (GetterLazyEahcToString) o;
|
||||
if ((! other.canEqual((java.lang.Object) this)))
|
||||
return false;
|
||||
final java.lang.Object this$value = this.getValue();
|
||||
@@ -42,10 +42,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 GetterLazyEahcToString);
|
||||
}
|
||||
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;
|
||||
final java.lang.Object $value = this.getValue();
|
||||
@@ -54,7 +54,7 @@
|
||||
result = ((result * PRIME) + (($value2 == null) ? 0 : $value2.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 (((("GetterLazyEahcToString(value=" + this.getValue()) + ", value2=") + this.value2) + ")");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user