Skip to content

Latest commit

 

History

History
14 lines (8 loc) · 854 Bytes

README.md

File metadata and controls

14 lines (8 loc) · 854 Bytes

Equals-And-HashCode-Reloaded IntelliJ Plugin

Contains inspections:

  • "Field not used in 'equals()/hashCode()' method": Will check if equals() and hashCode() implementations cover all class fields.

How Does It Work?

The inspection is automatically enabled after installation. If a class contains a equals() or a hashCode() implementation, it will check if all instance fields have been used. Using getters is supported. Static fields are ignored, since they are equal for all instances. Final fields are ignored if they use a literal initialization, since these fields are effectively constant. Transitive fields are ignored, since they usually are calculated from other fields.

License

Copyright 2017 Omikron Data Quality GmbH.

Licensed under the GNU Lesser General Public License, Version 3.0