Skip to content

Sort same-nested projects by display name - #9834

Open
jtulach wants to merge 2 commits into
apache:masterfrom
jtulach:jtulach/SortByNameWhenNotNested
Open

jtulach wants to merge 2 commits into
apache:masterfrom
jtulach:jtulach/SortByNameWhenNotNested

Conversation

@jtulach

@jtulach jtulach commented Nov 28, 2026

Copy link
Copy Markdown
Contributor
Nested Maven Alphabetical NetBeans

@eppleton eppleton left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks, keeping the nesting and sorting siblings by name is a nice way to fix #9813. From reading the code (I haven't run it), there is one real problem and two smaller points; details inline.

Comment on lines +130 to +135
var children = parentship.get(parent);
if (children == null) {
children = new TreeSet<>(byProjectDisplayName);
parentship.put(parent, children);
}
children.add(info);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

looks like parentship.computeIfAbsent(...).add(...) from the distance

if you like using jackpot hints, there is a rule for that somewhere in https://github.com/mbien/jackpot-inspections.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make projects view "sort by path" optional

3 participants