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

fix(jdk7): Remove comments associated with deleted properties in pom.xml #321

Merged
merged 5 commits into from
Oct 12, 2024

Conversation

gounthar
Copy link
Collaborator

Enhance the removeOffendingProperties method in PomModifier.java to remove comments associated with deleted properties.

  • Identify comments directly above the properties jenkins-test-harness.version and java.level and remove them along with the properties.
  • Update unit tests in PomModifierTest.java to verify the removal of comments associated with deleted properties.

Testing done

mvn install

Submitter checklist

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests - that demonstrates feature works or fixes the issue

Fixes #35

Enhance the `removeOffendingProperties` method in `PomModifier.java` to remove comments associated with deleted properties.

* Identify comments directly above the properties `jenkins-test-harness.version` and `java.level` and remove them along with the properties.
* Update unit tests in `PomModifierTest.java` to verify the removal of comments associated with deleted properties.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/gounthar/plugin-modernizer-tool/issues/35?shareId=XXXX-XXXX-XXXX-XXXX).
@gounthar gounthar marked this pull request as ready for review October 11, 2024 19:47
@gounthar gounthar requested a review from a team as a code owner October 11, 2024 19:47
@jonesbusy jonesbusy merged commit 3f29beb into jenkins-infra:main Oct 12, 2024
15 checks passed
@jonesbusy jonesbusy added the bug For changelog: Minor bug. Will be listed after features label Dec 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug For changelog: Minor bug. Will be listed after features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants