All Downloads are FREE. Search and download functionalities are using the official Maven repository.

resources.report.rules.findbugs.EQ_DOESNT_OVERRIDE_EQUALS.html Maven / Gradle / Ivy

Go to download

Sanity4J was created to simplify running multiple static code analysis tools on the Java projects. It provides a single entry point to run all the selected tools and produce a consolidated report, which presents all findings in an easily accessible manner.

The newest version!


Eq: Class doesn't override equals in superclass (EQ_DOESNT_OVERRIDE_EQUALS)


Eq: Class doesn't override equals in superclass (EQ_DOESNT_OVERRIDE_EQUALS)

This class extends a class that defines an equals method and adds fields, but doesn't define an equals method itself. Thus, equality on instances of this class will ignore the identity of the subclass and the added fields. Be sure this is what is intended, and that you don't need to override the equals method. Even if you don't need to override the equals method, consider overriding it anyway to document the fact that the equals method for the subclass just return the result of invoking super.equals(o).





© 2015 - 2024 Weber Informatics LLC | Privacy Policy