From 8558f5ea6fe86030f162e78aa0016f7bdd2bc210 Mon Sep 17 00:00:00 2001 From: erwan-serandour Date: Mon, 16 Dec 2024 18:03:21 +0100 Subject: [PATCH] Modify rule S3749: Update rule description to add new javax and jakarta annotations (SONARJAVA-5036) (#4578) Update rule description to add javax persistence annotations and jakarta inject and resource annotation --- rules/S3749/java/rule.adoc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rules/S3749/java/rule.adoc b/rules/S3749/java/rule.adoc index dbced7a406f..525e6e025e1 100644 --- a/rules/S3749/java/rule.adoc +++ b/rules/S3749/java/rule.adoc @@ -8,6 +8,10 @@ This rule raises an issue when a singleton ``++@Component++``, ``++@Controller++ * ``++org.springframework.beans.factory.annotation.Value++`` * ``++javax.annotation.Inject++`` * ``++javax.annotation.Resource++`` +* ``++javax.persistence.PersistenceContext++`` +* ``++jakarta.annotation.Resource++`` +* ``++jakarta.inject.Inject++`` +* ``++jakarta.persistence.PersistenceContext++`` == How to fix it