aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj
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-ecj
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-ecj')
-rw-r--r--test/transform/resource/after-ecj/ConflictingStaticConstructorNames.java25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/transform/resource/after-ecj/ConflictingStaticConstructorNames.java b/test/transform/resource/after-ecj/ConflictingStaticConstructorNames.java
new file mode 100644
index 00000000..8da11258
--- /dev/null
+++ b/test/transform/resource/after-ecj/ConflictingStaticConstructorNames.java
@@ -0,0 +1,25 @@
+@lombok.Data(staticConstructor = "of") @lombok.NoArgsConstructor class ConflictingStaticConstructorNames {
+ public @java.lang.Override @java.lang.SuppressWarnings("all") boolean equals(final java.lang.Object o) {
+ if ((o == this))
+ return true;
+ if ((! (o instanceof ConflictingStaticConstructorNames)))
+ return false;
+ final @java.lang.SuppressWarnings("all") ConflictingStaticConstructorNames other = (ConflictingStaticConstructorNames) o;
+ if ((! other.canEqual((java.lang.Object) this)))
+ return false;
+ return true;
+ }
+ public @java.lang.SuppressWarnings("all") boolean canEqual(final java.lang.Object other) {
+ return (other instanceof ConflictingStaticConstructorNames);
+ }
+ public @java.lang.Override @java.lang.SuppressWarnings("all") int hashCode() {
+ int result = 1;
+ return result;
+ }
+ public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
+ return "ConflictingStaticConstructorNames()";
+ }
+ public @java.lang.SuppressWarnings("all") ConflictingStaticConstructorNames() {
+ super();
+ }
+} \ No newline at end of file