Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.0.7
-
Fix Version/s: 2.2.2, 3.0-alpha-6
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
Overriding equals and not hashCode is considered bad practice. Also, while looking around, I noticed the two subclasses (Repository and PluginRepository) both override equals and just call "super.equals()". There is a cryptic comment nearby that leads me to believe this is a temporary fix for an old problem.
Issue Links
- is related to
-
MNG-2817
Add identity specification in maven-model and maven-settings
-
This patch implements hashCode() and also removes the subclasses' overrides of equals.