Repository navigation
[java] Fix #6627: UnusedPrivateMethod: add javax to ignored annotations - #6821
Merged
adangel merged 2 commits intoJun 29, 2026
Conversation
…tSuppressionAnnotations The new versions from jakarta are already in there, there's no reason the old versions shouldn't be there as well.
Contributor
|
Compared to main: (comment created at 2026-06-24 14:33:26+00:00 for cba831e) |
lukasgraef
approved these changes
Jun 28, 2026
lukasgraef
left a comment
Member
There was a problem hiding this comment.
LGTM. Absolutely makes sense to also add the javax variants.
UncleOwen
deleted the
issue-6627-UnusedPrivateMethod-add-javax-to-ignoredAnnotations
branch
June 29, 2026 08:38
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Describe the PR
Add
javax.annotations.PostConstructandjavax.annotations.PreDestroyto the default list of annotations inUnusedPrivateMethodRulethat cause a method to be ignored. The list already contains their newer versions injakarta.annotations, there is no reason not to include the older version.Related issues
Ready?
./mvnw clean verifypasses (checked automatically by github actions)