[MGNLCDEP-6] Dependencies are n-plicated Created: 16/Dec/10  Updated: 19/Jan/11  Resolved: 17/Dec/10

Status: Closed
Project: Content Dependencies
Component/s: None
Affects Version/s: 1.0.1
Fix Version/s: 1.0.2

Type: Bug Priority: Major
Reporter: Federico Grilli Assignee: Federico Grilli
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File duplicated-deps.png    
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

If in page a paragraph is referred to multiple times it is shown as a dependency for as many times it is referred. See also attached screenshot from the demo-project home page deps.



 Comments   
Comment by Jan Haderka [ 18/Jan/11 ]
int result = 1;
result = prime * result + ((url == null) ? 0 : url.hashCode());

There's no really need for prime multiplication by result as it will always be prime, right? (but granted, it's exactly according to the book )
The only time when the above would be useful for generating better hashCode distribution is when you have more properties to include in the calculation then just url.

Comment by Federico Grilli [ 18/Jan/11 ]

Cool, I did not even notice that, I just let Eclipse generate the code

Generated at Mon Feb 12 00:11:37 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.