[
https://issues.apache.org/jira/browse/MNG-6370?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16386850#comment-16386850
]
Michael Osipov edited comment on MNG-6370 at 3/5/18 10:20 PM:
--------------------------------------------------------------
The current code will lead to a {{ClassCastException}}, right? If so, why
wasn't this raised way earlier?
was (Author: michael-o):
The current code will lead to a {{ClassCastException}}, right?
> Actual argument type 'HashSet<MavenProject>' is incompatible with expected
> argument type 'MavenProject'.
> --------------------------------------------------------------------------------------------------------
>
> Key: MNG-6370
> URL: https://issues.apache.org/jira/browse/MNG-6370
> Project: Maven
> Issue Type: Bug
> Reporter: Sylwester Lachiewicz
> Priority: Trivial
>
> 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
(v7.6.3#76005)