mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-17 02:14:16 +00:00
fixed issue 391: Using 'staticConstructor' on @Data whilst an @XxxArgsConstructor is present means it gets ignored, but until now lombok didn't warn you about this.
This commit is contained in:
1 parent
fe4985e212
commit
a382c21d46
7 files changed
+84
-6
No files matched your search
@@ -0,0 +1,29 @@
|
||||
class ConflictingStaticConstructorNames {
|
||||
@java.lang.Override
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public boolean equals(final java.lang.Object o) {
|
||||
if (o == this) return true;
|
||||
if (!(o instanceof ConflictingStaticConstructorNames)) return false;
|
||||
final ConflictingStaticConstructorNames other = (ConflictingStaticConstructorNames)o;
|
||||
if (!other.canEqual((java.lang.Object)this)) return false;
|
||||
return true;
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public boolean canEqual(final java.lang.Object other) {
|
||||
return other instanceof ConflictingStaticConstructorNames;
|
||||
}
|
||||
@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 "ConflictingStaticConstructorNames()";
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public ConflictingStaticConstructorNames() {
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user