aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok/ConflictingStaticConstructorNames.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2012-07-16 23:18:58 +0200
committerReinier Zwitserloot <reinier@zwitserloot.com>2012-07-16 23:18:58 +0200
commita382c21d464c22658e8c2eea7d7d75c2a6747527 (patch)
tree66d1210faac4877a0d6a3452e641feeacdca4f0a /test/transform/resource/after-delombok/ConflictingStaticConstructorNames.java
parentfe4985e2127e5fc54a0a1ae3c2c4fef17789f8bd (diff)
downloadlombok-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.java29
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