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

Fixed problem with duplicate modules while generating module-info (#113) #160

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

1tchy
Copy link

@1tchy 1tchy commented Jan 4, 2022

This should fix #113.

StringBuilder modules = new StringBuilder();
StringBuilder modulePath = new StringBuilder();
boolean isFirst = true;
List<String> modules = new ArrayList<>();
Copy link
Contributor

Choose a reason for hiding this comment

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

Better use a Set instead of List.

Copy link
Author

Choose a reason for hiding this comment

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

A Set might reorder the modules and introduce a new undefined order. I would rather not risk this with my limited knowledge of this project.
If you don't agree and/or have more insights, please feel free to improve it further.

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