diff --git a/its/ruling/src/test/java/org/sonar/java/it/AutoScanTest.java b/its/ruling/src/test/java/org/sonar/java/it/AutoScanTest.java index 9ab18edcc45..f6f9da83be8 100644 --- a/its/ruling/src/test/java/org/sonar/java/it/AutoScanTest.java +++ b/its/ruling/src/test/java/org/sonar/java/it/AutoScanTest.java @@ -180,7 +180,7 @@ public void javaCheckTestSources() throws Exception { assertThat(newTotal).isEqualTo(knownTotal); assertThat(rulesCausingFPs).hasSize(5); assertThat(rulesNotReporting).hasSize(7); - assertThat(rulesSilenced).hasSize(69); + assertThat(rulesSilenced).hasSize(68); /** * 4. Check total number of differences (FPs + FNs) @@ -188,7 +188,7 @@ public void javaCheckTestSources() throws Exception { * No differences would mean that we find the same issues with and without the bytecode and libraries */ String differences = Files.readString(pathFor(TARGET_ACTUAL + PROJECT_KEY + "-no-binaries_differences")); - assertThat(differences).isEqualTo("Issues differences: 3265"); + assertThat(differences).isEqualTo("Issues differences: 3253"); } private static Path pathFor(String path) { diff --git a/its/ruling/src/test/resources/autoscan/autoscan-diff-by-rules.json b/its/ruling/src/test/resources/autoscan/autoscan-diff-by-rules.json index 3f3f693fe4e..a93113e9f91 100644 --- a/its/ruling/src/test/resources/autoscan/autoscan-diff-by-rules.json +++ b/its/ruling/src/test/resources/autoscan/autoscan-diff-by-rules.json @@ -2801,12 +2801,6 @@ "falseNegatives": 15, "falsePositives": 0 }, - { - "ruleKey": "S6374", - "hasTruePositives": false, - "falseNegatives": 12, - "falsePositives": 0 - }, { "ruleKey": "S6376", "hasTruePositives": false, diff --git a/java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S6374.html b/java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S6374.html index 8059ca2b94c..6c8ce359327 100644 --- a/java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S6374.html +++ b/java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S6374.html @@ -1,3 +1,4 @@ +

This rule is deprecated; use {rule:java:S2755} instead.

Why is this an issue?

By default XML processors attempt to load all XML schemas and DTD (their locations are defined with xsi:schemaLocation attributes and DOCTYPE declarations), potentially from an external storage such as file system or network, which may lead, if no restrictions are put in diff --git a/java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S6374.json b/java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S6374.json index 4558cf2e6e8..9d86c641fc5 100644 --- a/java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S6374.json +++ b/java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S6374.json @@ -7,7 +7,7 @@ }, "attribute": "CONVENTIONAL" }, - "status": "ready", + "status": "deprecated", "remediation": { "func": "Constant\/Issue", "constantCost": "15min"