-
-
Notifications
You must be signed in to change notification settings - Fork 13
Simplify Extentions api - Remove overhead with id #36
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
base: main
Are you sure you want to change the base?
Conversation
263feef to
570a7a7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the patch, but I actually did it for future extensibility and traceabilty reasons. Classes are private for the same reasons - internal use for now. I would like to keep the source ID in the metadata, and to extend that in the future. At the same time, it would be possible to introduce new methods that would infer the IDs from the file names by default, I guess it would address DevX simplicity case
I understand intention of this, but here is a few things that concerns me in current api
My suggestion about api is the following withExtention(String className, File jar) // 1
withExtention(Collection<String> classNames, File jar) // 2
withExtention(Collection<String> classNames, Path directoryWithJars) // 3But if in case of |
I agree with this approach. It is one of the ways to "infer" IDs like in the previous comment |
|
FTR my Slack comment:
|
570a7a7 to
1104494
Compare
Motivation
iddoes not bring any benefits and looks redundantextensionJarsin aLinkedHashSetto preserve an order and keep only unique valuesextensionClassNamesin aLinkedHashSetto preserve an order and keep only unique value