Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a flattenDependencyNodes method accepting a DependencyFilter #388

Closed
wants to merge 1 commit into from

Conversation

gnodet
Copy link
Contributor

@gnodet gnodet commented Dec 5, 2023

No description provided.


@Override
public List<DependencyNode> flattenDependencyNodes(
RepositorySystemSession session, DependencyNode root, DependencyFilter filter) {
validateSession(session);
requireNonNull(root, "root cannot be null");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should happen only in public facing method (but maybe even there make it nullable?) As originally it CAN be null... See original code:

        if (result.getRoot() != null) {
            result.getRoot().accept(visitor);
        }

@cstamas
Copy link
Member

cstamas commented Dec 6, 2023

Superseded by #389

@cstamas cstamas closed this Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants