On Fri, 18 May 2012 00:31:43 +0200, Ben McCann <
b...@benmccann.com> wrote:
> Hmm, I see. I wanted to annotate my class with @Data, but it was then
> complaining "Generating equals/hashCode implementation but without a call
> to superclass, even though this class does not extend java.lang.Object.
> If
> this is intentional, add '@EqualsAndHashCode(callSuper=false)' to your
> type.". This is why I was trying to add @EqualsAndHashCode. I suppose I
> can instead add @ToString, @Getter, @Setter, and
> @RequiredArgsConstructor,
> but it's many more annotations to have to use.
Let's focus on equals/hashcode. The warning was telling you that you're
thus you must probe also fields from the superclass. So, callSuper=true is