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

overload constructor of TranslationUriResolver #94

Closed
wants to merge 1 commit into from

Conversation

papacst
Copy link
Contributor

@papacst papacst commented Jul 11, 2024

No description provided.

@papacst papacst requested a review from bertrand-lorentz July 11, 2024 13:40
@bertrand-lorentz
Copy link
Contributor

I don't understand why this is needed.
The caller can just convert to a Path themselves:
... = new TranslationUriResolver(version, Path.of(someString))

@papacst
Copy link
Contributor Author

papacst commented Jul 11, 2024

Notice Viewer is mainly used as a library (at least in MDM). Such polymorphism with overloaded constructors is quite common in libraries. When coding for MDM, I run into this (holding a Path instead of string), so my reaction was to overload it (that caused the issue with diff in jar from maven - I had totally forgotten it :) )

Copy link
Contributor

@bertrand-lorentz bertrand-lorentz left a comment

Choose a reason for hiding this comment

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

This seems to be the way we want/need to go, so OK.

@papacst papacst closed this Aug 5, 2024
@bertrand-lorentz bertrand-lorentz deleted the overload_translationuriresolver_constructor branch August 5, 2024 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants