On Wed, 2 Jun 2021 at 23:48, <[email protected]> wrote:
-- SNIP --
<module name="EmptyStatement" />
> - <module name="EqualsHashCode" />
> + <!-- <module name="EqualsHashCode" /> -->
> <!-- Method parameters and local variables should not hide fields,
> except in constructors and setters -->
> <module name="HiddenField">
> <property name="ignoreConstructorParameter" value="true" />
>
Disabling the checkstyle rule applies to all code. Some of the code in
numbers should conform to this rule (Complex, Fraction, etc). This case
should use the checkstyle exclusions file instead.
You can mark the exclusions with a note to state that the hash code method
is in the super class (Angle) for the Angle implementations, none of which
have additional fields to include in the hash.
Alex