Skip to content

Refactor duplicated code in Xpp3Dom and Xpp3DomUtils #6

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

Closed
belingueres opened this issue Dec 18, 2019 · 1 comment
Closed

Refactor duplicated code in Xpp3Dom and Xpp3DomUtils #6

belingueres opened this issue Dec 18, 2019 · 1 comment

Comments

@belingueres
Copy link
Contributor

The following methods are duplicated (or nearly identical):

  • mergeXpp3Dom
  • writeToSerializer
  • isEmpty
  • isNotEmpty

Move all the code to only one of the classes. Deprecate methods in the other class, delegating its implementation to the first class.

@gnodet gnodet transferred this issue from codehaus-plexus/plexus-utils Apr 19, 2023
gnodet added a commit to gnodet/plexus-xml that referenced this issue May 10, 2023
@gnodet
Copy link
Member

gnodet commented May 10, 2023

@belingueres @michael-o The PR deprecates Xpp3DomUtils in favour of Xpp3Dom which contains the needed methods.

@gnodet gnodet closed this as completed in 85fe71e May 14, 2023
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

No branches or pull requests

2 participants