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

Refactor related to "EMF model driven development of Jakarta RESTful OSGi applications" #60

Draft
wants to merge 2 commits into
base: snapshot
Choose a base branch
from

Conversation

ideas-into-software
Copy link
Contributor

@ideas-into-software ideas-into-software commented Jun 11, 2024

@juergen-albert

This PR contains partial refactor of DTOToEPackageConverter code, related to "EMF model driven development of Jakarta RESTful OSGi applications" project you assigned to me.

Since DTOToEPackageConverter started off as a static utility class, adding another converter, JavaReferenceTypeToEPackageConverter, which shares and builds upon most of that logic, necessitated extracting common parts as to avoid code duplication. That is one the points I mentioned during requirements elicitation phase for "EMF model driven development of Jakarta RESTful OSGi applications" project.

Unfortunately, since static methods cannot be overriden, I was unable to continue using this approach - i.e. having both converters be static utility classes and avoid duplicating most of the code.

Therefore, I created a new PR ( #61 ) on a separate branch ( Converter-as-Singleton-Component ), which continues with this refactor using a different approach, which allows to easily share common logic. Please refer to that PR ( #61 ) for more details and let me know whether you insist on continuing using static utility class approach, as this will unfortunately require duplicating most of the code - unless you have some other idea which can reconcile this, that perhaps I did not take into consideration.

 - Fix for issue with custom `java.util.Map$Entry`, used when creating
`EMap`

 - Fix for issue with `org.gecko.emf.converter` used as package name in
integration tests

Signed-off-by: Michael H. Siemaszko <[email protected]>
 - Refactor related to "EMF model driven development of Jakarta RESTful
OSGi applications"

 - Minor fixes and improvements

Signed-off-by: Michael H. Siemaszko <[email protected]>
Copy link

sonarcloud bot commented Jun 11, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

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.

1 participant