Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-9591

Implement hashcode() and equals() method in ItemDefinitionImpl

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.40.0
    • 1.8.25, 1.42.0, 1.22.10
    • core
    • None

    Description

      This is useful in the context of FileVault for this algorithm:

      • get the NodeDefinition of the child node that is to be deleted.
      • loop through all child nodes and count the ones that have the same nodedef. To compare that the nodedef is same, it was recommended to add an equals method in ItemDefinitionImpl as per the conversation done on PR https://github.com/apache/jackrabbit-filevault/pull/163#discussion_r711728698 
      • if the nodedef is mandatory and there are more than 1 nodes with this nodedef, we can delete it.

      Attachments

        Issue Links

          Activity

            People

              kwin Konrad Windszus
              ankitaagar Ankita Agarwal
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: