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

Moved populateIfNecessary to Neo4jMappingContext from IdPopulator #2832

Conversation

akshatbiztech
Copy link
Contributor

I ran DesigniteJava a smell detection tool and detected various smells. I refactored populateIfNecessary based on the "Feature Envy" smell.The tool detected a instance of this smell because populateIfNecessary is more interested in members of the type: Neo4jMappingContext.

Would love to get your feedback on this.

I have attached the file that shows all the design smells.
DesignSmells.csv

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Nov 25, 2023
@michael-simons
Copy link
Collaborator

I don't see any envy or even why this should be a design smell. Your changes ties the that feature now to the mapping context for all time. Which is quite the opposite what you did in #2834. So when using such a tool, you should really think about what the tooling suggest, otherwise you get strange results, very much the same issue with trying test coverage to 100% by testing mutators.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting-for-triage An issue we've not yet triaged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants