From 9ad2bd563b001c0742d767fea9ddaaeb60400ec7 Mon Sep 17 00:00:00 2001
From: Reinier Zwitserloot
If a getter exists for a field to be included, it is called instead of using a direct field reference. This behaviour can be suppressed:
@EqualsAndHashCode(doNotUseGetters = true)
+
+ If the class (or an enclosing class) has either the @org.eclipse.jdt.annotation.NonNullByDefault
or the @javax.annotation.ParametersAreNonnullByDefault
annotation, the parameter of the generated equals
method will have the appropriate @Nullable
annotation; JDK8+ is required when you do this. (since 1.18.12).