public void visit()

in apache-whisker-model/src/main/java/org/apache/creadur/whisker/model/ResourceNamesCollator.java [78:90]


    public void visit(final Resource resource) {
        if (!this.resources.add(new ImmutablePair<WithinDirectory, Resource>(
                this.lastDirectory, resource))) {
            // Already added
            if (this.lastDirectory == null) {
                // Issue with logic which will result in a null pointer later
                throw new IllegalArgumentException(
                        "Expected directory to be present");
            }
            this.duplicates.add(new ImmutablePair<WithinDirectory, Resource>(
                    this.lastDirectory, resource));
      }
    }