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

Simplify Revision.clone() implementation #1106

Merged
merged 15 commits into from
Mar 9, 2024

Conversation

AniketNS
Copy link
Contributor

@AniketNS AniketNS commented Feb 16, 2024

Simplify the implementation of Revision.clone()

  • I have read the CONTRIBUTING doc
  • I have referenced the Jira issue related to my changes in one or more commit messages
  • I have added tests that verify my changes
  • Unit tests pass locally with my changes
  • I have added documentation as necessary
  • No Javadoc warnings were introduced with my changes
  • No spotbugs warnings were introduced with my changes
  • I have interactively tested my changes

Types of changes

What types of changes does your code introduce?

  • Infrastructure change (non-breaking change which updates dependencies or improves infrastructure)

AniketNS and others added 10 commits January 15, 2024 19:21
…insci#1099)

List more operating systems so that web searches will find the page.

Link to the operating system end of life blog post.

Correct the name of Amazon Linux name.

Add the most important option, upgrade to a supported operating system.
Bumps [org.jenkins-ci.plugins:plugin](https://github.com/jenkinsci/plugin-pom) from 4.76 to 4.77.
- [Release notes](https://github.com/jenkinsci/plugin-pom/releases)
- [Changelog](https://github.com/jenkinsci/plugin-pom/blob/master/CHANGELOG.md)
- [Commits](jenkinsci/plugin-pom@plugin-4.76...plugin-4.77)

---
updated-dependencies:
- dependency-name: org.jenkins-ci.plugins:plugin
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…anches from collection to list for indexed access and specific order
@AniketNS AniketNS requested a review from a team as a code owner February 16, 2024 09:50
@AniketNS AniketNS changed the title Optimized Revision.Java class for better encapsulation, better error handling and Used List over general Collection Optimized Revision.Java class for better encapsulation, better error handling Feb 16, 2024
Copy link
Contributor

@MarkEWaite MarkEWaite left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the pull request @AniketNS. Much appreciated.

I'm not willing to hide the fields of the Revision object because it changes the serialization of the object and risks compatibility problems for users.

The changes need to be formatted with mvn spotless:apply so that the source code continues to use a consistent formatting style.

src/main/java/hudson/plugins/git/Revision.java Outdated Show resolved Hide resolved
src/main/java/hudson/plugins/git/Revision.java Outdated Show resolved Hide resolved
@MarkEWaite MarkEWaite changed the title Optimized Revision.Java class for better encapsulation, better error handling Simplify Revision.clone implementation Feb 16, 2024
@MarkEWaite MarkEWaite changed the title Simplify Revision.clone implementation Simplify Revision.clone() implementation Feb 16, 2024
@AniketNS AniketNS requested a review from MarkEWaite February 23, 2024 10:37
@AniketNS
Copy link
Contributor Author

Hey @MarkEWaite, I've made the changes you told me. Please check and tell me if it is right or if I should make any other changes.

@MarkEWaite
Copy link
Contributor

@AniketNS I am out of the office for another week. I won't look further at this until after I return.

@AniketNS
Copy link
Contributor Author

Ohh ok @MarkEWaite.

@MarkEWaite MarkEWaite merged commit 52f1ab4 into jenkinsci:master Mar 9, 2024
15 checks passed
@MarkEWaite MarkEWaite added the chore Reduces maintenance effort by changes not directly visible to users label Mar 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Reduces maintenance effort by changes not directly visible to users
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants