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

Consider Jakarta EE9 injection annotations for general coding rule #1286

Merged
merged 2 commits into from
Apr 10, 2024

Conversation

hankem
Copy link
Member

@hankem hankem commented Apr 8, 2024

The condition BE_ANNOTATED_WITH_AN_INJECTION_ANNOTATION and the rule NO_CLASSES_SHOULD_USE_FIELD_INJECTION previously considered the javax.inject.Inject and javax.annotation.Resource annotations, but not their jakarta variants (jakarta.inject.Inject and jakarta.annotation.Resource).

Resolves: #1285

@hankem hankem requested a review from codecholeric April 8, 2024 23:37
hankem added 2 commits April 10, 2024 09:10
The condition `BE_ANNOTATED_WITH_AN_INJECTION_ANNOTATION` and the rule `NO_CLASSES_SHOULD_USE_FIELD_INJECTION`
previously considered the `javax.inject.Inject` and `javax.annotation.Resource` annotations,
but not their jakarta variants (`jakarta.inject.Inject` and `jakarta.annotation.Resource`).

Resolves: #1285

Signed-off-by: Manfred Hanke <[email protected]>
@codecholeric codecholeric force-pushed the consider-jakarta-annotations branch from 56f8ecb to 1d1a990 Compare April 10, 2024 07:13
Copy link
Collaborator

@codecholeric codecholeric left a comment

Choose a reason for hiding this comment

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

lgtm, thanks for taking care of it!! 🙂

@codecholeric codecholeric merged commit 40624f1 into main Apr 10, 2024
21 checks passed
@codecholeric codecholeric deleted the consider-jakarta-annotations branch April 10, 2024 07:42
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

Successfully merging this pull request may close these issues.

Jakarta Inject package name incorrect in BE_ANNOTATED_WITH_AN_INJECTION_ANNOTATION rule
2 participants