depclean-gradle-plugin/src/main/java/se/kth/depclean/gradle/analysis/GradleDependencyAnalyzer.java
/**
     * This method defines a new way to remove the artifacts by using the conflict id. We don't care about the version
     * here because there can be only 1 for a given artifact anyway.
     *
     * @param start  initial set
     * @param remove set to exclude
     * @return set with remove excluded
     */
This method defines a new way to remove the artifacts by using the conflict id. We don't care about the version
here because there can be only 1 for a given artifact anyway.

@param start  initial set
@param remove set to exclude
@return set with remove excluded
This method defines a new way to remove the artifacts by using the conflict id . We don ' t care about the version here because there can be only 1 for a given artifact anyway . @param start initial set @param remove set to exclude @return set with remove excluded
private Set<Artifact> removeAll(Set<Artifact> start, Set<Artifact> remove) {
        Set<Artifact> results = new LinkedHashSet<>(start.size());
        for (Artifact artifact : start) {
            boolean found = false;
            for (Artifact artifact2 : remove) {
                if (artifact.getDependencyConflictId().equals(artifact2.getDependencyConflictId())) {
                    found = true;
                    break;
                }
            }
            if (!found) {
                results.add(artifact);
            }
        }
        return results;
    }
private Set < Artifact > removeAll ( Set < Artifact > start , Set < Artifact > remove ) { Set < Artifact > results = new LinkedHashSet < > ( start . size ( ) ) ; for ( Artifact artifact : start ) { boolean found = false ; for ( Artifact artifact2 : remove ) { if ( artifact . getDependencyConflictId ( ) . equals ( artifact2 . getDependencyConflictId ( ) ) ) { found = true ; break ; } } if ( ! found ) { results . add ( artifact ) ; } } return results ; }
This method defines a new way to remove the artifacts by using the conflict id.
This method defines a new way to remove the artifacts by using the conflict id .