Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-5535

Useless code in the commonMetadataGenerator

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.4.7, 3.5.5, 3.7, 3.9
    • None
    • None
    • None

      In the CommonMetadataGenerator.java

      For the map intersection, replace :

      for (String metadataName : metadataSetNames.keySet())
      {
      if (!commonMetadataNames.containsKey(metadataName))

      { commonMetadataNames.remove(metadataName); }

      }

      By

      commonMetadataNames.keySet().retainAll(metadataSetNames.keySet());

            trizzi Thibaut Rizzi (Inactive)
            lbouchet Loïc Bouchet
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: