Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-6607

ModuleSpecification.addSystemDependency treats a duplicate add as an excluded dependency

XMLWordPrintable

          if (!exclusions.contains(dependency.getIdentifier()) && !systemDependenciesSet.contains(dependency.getIdentifier())) {
              this.systemDependencies.add(dependency);
              this.systemDependenciesSet.add(dependency.getIdentifier());
          } else {
              excludedDependencies.add(dependency.getIdentifier());
          }
      

      The '!systemDependenciesSet.contains(dependency.getIdentifier())' shouldn't influence what goes into excludedDependencies.

      This does no harm but I'm going to change this method for WFCORE-6606 anyway, so I'm filing this to let me change this bit in a separate commit.

              bstansbe@redhat.com Brian Stansberry
              bstansbe@redhat.com Brian Stansberry
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: