-
Notifications
You must be signed in to change notification settings - Fork 299
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
Jakarta Inject package name incorrect in BE_ANNOTATED_WITH_AN_INJECTION_ANNOTATION rule #1285
Comments
hankem
added a commit
that referenced
this issue
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 Signed-off-by: Manfred Hanke <[email protected]>
You're right: The rule had been added (#289) before Jakarta EE9 was introduced, and it was overlooked to update it to consider the |
codecholeric
pushed a commit
that referenced
this issue
Apr 10, 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 Signed-off-by: Manfred Hanke <[email protected]>
codecholeric
added a commit
that referenced
this issue
Apr 10, 2024
…1286) 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Jakarta's
Inject
annotation package name used for theBE_ANNOTATED_WITH_AN_INJECTION_ANNOTATION
rule in theGeneralCodingRules
class is set tojavax.inject.Inject
when it should bejakarta.inject.Inject
. See the related API documentation.The text was updated successfully, but these errors were encountered: