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

Use spotbugs plugin 4.8.2.0 #1538

Merged
merged 4 commits into from
Dec 22, 2023
Merged

Conversation

MarkEWaite
Copy link
Contributor

Use spotbugs plugin 4.8.2.0

Suppress the CT_CONSTRUCTUR_THROWS warning because it is not helpful in a Jenkins context. More details are available in jenkinsci/plugin-pom#869 (comment)

Suppress public primitive spotbugs warning for existing APIs. Preserve compatibility without allowing new additions to include public primitives.

Suppress null argument check for descriptor's newInstance. Javadoc of the parent object states that the req argument will always be non-null, but cannot be annotated as non-null due to compatibility needs.

Suppress unused field warning in GitSCM descriptor. Do not risk compatibility by removing the private field.

Checklist

  • 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
  • Documentation in README has been updated as necessary
  • Online help has been added and reviewed for any new or modified fields
  • Any dependent changes have been merged and published in upstream modules (like git-client-plugin)

Types of changes

  • Maintenance

Further comments

Changes to pom.xml will be removed once plugin pom includes the new settings.

Do not risk compatibility by removing the private field.
Javadoc of the parent object states that the req argument will always be
non-null, but cannot be annotated as non-null due to compatibility needs.
Preserve compatibility without allowing new additions to include public
primitives.
Suppress the CT_CONSTRUCTUR_THROWS warning because it is not helpful in
a Jenkins context.

jenkinsci/plugin-pom#869 (comment)
gives more details.
@MarkEWaite MarkEWaite requested a review from a team as a code owner December 21, 2023 13:10
@MarkEWaite MarkEWaite added the chore Reduces maintenance effort by changes not directly visible to users label Dec 21, 2023
@github-actions github-actions bot added the dependencies Dependency related change label Dec 21, 2023
@MarkEWaite MarkEWaite removed the dependencies Dependency related change label Dec 21, 2023
@MarkEWaite MarkEWaite merged commit 163e6d5 into jenkinsci:master Dec 22, 2023
15 checks passed
@MarkEWaite MarkEWaite deleted the use-spotbugs-4.8.2 branch December 23, 2023 02:33
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.

1 participant