data-collector/src/main/java/se/kth/depclean/experiments/analysis/ProjectDependencyAnalysis.java
/**
     * Filter not-compile scoped artifacts from unused declared.
     *
     * @return updated project dependency analysis
     * @since 1.3
     */
Filter not-compile scoped artifacts from unused declared.
@return updated project dependency analysis
@since 1.3
Filter not - compile scoped artifacts from unused declared . @return updated project dependency analysis @since 1 . 3
public ProjectDependencyAnalysis ignoreNonCompile() {
        Set<Artifact> filteredUnusedDeclared = new HashSet<Artifact>(unusedDeclaredArtifacts);
        for (Iterator<Artifact> iter = filteredUnusedDeclared.iterator(); iter.hasNext(); ) {
            Artifact artifact = iter.next();
            if (!artifact.getScope().equals(Artifact.SCOPE_COMPILE)) {
                iter.remove();
            }
        }
        return new ProjectDependencyAnalysis(usedDeclaredArtifacts, usedUndeclaredArtifacts, filteredUnusedDeclared);
    }
public ProjectDependencyAnalysis ignoreNonCompile ( ) { Set < Artifact > filteredUnusedDeclared = new HashSet < Artifact > ( unusedDeclaredArtifacts ) ; for ( Iterator < Artifact > iter = filteredUnusedDeclared . iterator ( ) ; iter . hasNext ( ) ; ) { Artifact artifact = iter . next ( ) ; if ( ! artifact . getScope ( ) . equals ( Artifact . SCOPE_COMPILE ) ) { iter . remove ( ) ; } } return new ProjectDependencyAnalysis ( usedDeclaredArtifacts , usedUndeclaredArtifacts , filteredUnusedDeclared ) ; }
Filter not-compile scoped artifacts from unused declared.
Filter not - compile scoped artifacts from unused declared .