Allow for the presence of both a default constructor and one which takes the properties for the service#1030
Merged
tcormackMW merged 6 commits intodevelopmentfrom Aug 20, 2024
Merged
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## development #1030 +/- ##
===============================================
- Coverage 88.31% 88.29% -0.02%
===============================================
Files 247 248 +1
Lines 11938 11931 -7
===============================================
- Hits 10543 10535 -8
- Misses 1395 1396 +1
|
jeffdiclemente
requested changes
Aug 9, 2024
jeffdiclemente
requested changes
Aug 13, 2024
jeffdiclemente
approved these changes
Aug 14, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Not allowing a user to write a default constructor for a DS service implementation class is not ideal.
You error, even it is is logically correct as a class.
If impl implements interface
this is valid in DS.
But I cannot have:
The above will compile fail because it does not know whether to call the default or other constructor. In the case of both, it should call the one accepting properties, however a class should be allowed to have the default constructor always.