diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2012-07-16 23:18:58 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2012-07-16 23:18:58 +0200 |
commit | a382c21d464c22658e8c2eea7d7d75c2a6747527 (patch) | |
tree | 66d1210faac4877a0d6a3452e641feeacdca4f0a /test/transform/resource/after-delombok/ConflictingStaticConstructorNames.java | |
parent | fe4985e2127e5fc54a0a1ae3c2c4fef17789f8bd (diff) | |
download | lombok-a382c21d464c22658e8c2eea7d7d75c2a6747527.tar.gz lombok-a382c21d464c22658e8c2eea7d7d75c2a6747527.tar.bz2 lombok-a382c21d464c22658e8c2eea7d7d75c2a6747527.zip |
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.
Diffstat (limited to 'test/transform/resource/after-delombok/ConflictingStaticConstructorNames.java')
-rw-r--r-- | test/transform/resource/after-delombok/ConflictingStaticConstructorNames.java | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/ConflictingStaticConstructorNames.java b/test/transform/resource/after-delombok/ConflictingStaticConstructorNames.java new file mode 100644 index 00000000..172ed298 --- /dev/null +++ b/test/transform/resource/after-delombok/ConflictingStaticConstructorNames.java @@ -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() { + } +}
\ No newline at end of file |