private void removeDependenciesWithoutSha1 ( Collection < DependencyInfo > dependencies ) { Collection < DependencyInfo > childDependencies = new ArrayList <> ( ) ; for ( Iterator < DependencyInfo > iterator = dependencies . iterator ( ) ; iterator . hasNext ( ) ; ) { DependencyInfo dependencyInfo = iterator . next ( ) ; if ( dependencyInfo . getSha1 ( ) . isEmpty ( ) ) { childDependencies . addAll ( dependencyInfo . getChildren ( ) ) ; iterator . remove ( ) ; } } dependencies . addAll ( childDependencies ) ; }
currently deprecated - not relevant