You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Hudson (Jira)" <ji...@apache.org> on 2020/03/28 15:03:02 UTC

[jira] [Commented] (MNG-6370) ConcurrencyDependencyGraph#getNumberOfBuilds() does not remove finished projects from unfinished ones

    [ https://issues.apache.org/jira/browse/MNG-6370?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17069753#comment-17069753 ] 

Hudson commented on MNG-6370:
-----------------------------

Build failed in Jenkins: Maven TLP » maven-studies » maven-metrics #4

See https://builds.apache.org/job/maven-box/job/maven-studies/job/maven-metrics/4/

> ConcurrencyDependencyGraph#getNumberOfBuilds() does not remove finished projects from unfinished ones
> -----------------------------------------------------------------------------------------------------
>
>                 Key: MNG-6370
>                 URL: https://issues.apache.org/jira/browse/MNG-6370
>             Project: Maven
>          Issue Type: Bug
>    Affects Versions: 3.5.2, 3.5.3
>            Reporter: Sylwester Lachiewicz
>            Assignee: Michael Osipov
>            Priority: Trivial
>             Fix For: 3.5.4
>
>
> Fix _ConcurrencyDependencyGraph.getUnfinishedProjects_
> {code:java}
> private final HashSet<MavenProject> finishedProjects = new HashSet<>();
> /**
>  * @return set of projects that have yet to be processed successfully by the build.
>  */
> public Set<MavenProject> getUnfinishedProjects()
> {
>  Set<MavenProject> unfinished = new HashSet<>( projectBuilds.getProjects() );
>  unfinished.remove( finishedProjects );
>  return unfinished;
> }{code}
> replace _remove()_ with _removeAll()_



--
This message was sent by Atlassian Jira
(v8.3.4#803005)