From 3dc67eee51b221a64796820021ef92968f9c64f2 Mon Sep 17 00:00:00 2001 From: leonardo-pilastri-sonarsource <115481625+leonardo-pilastri-sonarsource@users.noreply.github.com> Date: Tue, 6 Feb 2024 16:26:32 +0100 Subject: [PATCH] Delete rule S6896: rule is already implemented by S6322 (#3613) --- rules/S6896/java/metadata.json | 2 +- rules/S6896/java/rule.adoc | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/rules/S6896/java/metadata.json b/rules/S6896/java/metadata.json index 8b9b0414361..51c0b7ee6de 100644 --- a/rules/S6896/java/metadata.json +++ b/rules/S6896/java/metadata.json @@ -1,7 +1,7 @@ { "title": "\".add()\" and \".addAll()\" should not be invoked on \"Map\" and \"SequencedMap\" entries views", "type": "BUG", - "status": "ready", + "status": "closed", "remediation": { "func": "Constant\/Issue", "constantCost": "5min" diff --git a/rules/S6896/java/rule.adoc b/rules/S6896/java/rule.adoc index eea2716ee40..f1a037db31e 100644 --- a/rules/S6896/java/rule.adoc +++ b/rules/S6896/java/rule.adoc @@ -34,3 +34,14 @@ sequencedMap.sequencedValues().addAll(List.of("1", "2", "3")); // Noncompliant, * Java Documentation - https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/util/SequencedMap.html#sequencedKeySet()[SequencedMap.sequencedKeySet()] * Java Documentation - https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/util/SequencedMap.html#sequencedValues()[SequencedMap.sequencedValues()] * Java Documentation - https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/util/SequencedMap.html#sequencedEntrySet()[SequencedMap.sequencedEntrySet()] + + +ifdef::env-github,rspecator-view[] + +== Comments And Links +(visible only on this page) + +lpilastri: set status to "closed" as explained in https://sonarsource.atlassian.net/browse/SONARJAVA-4785[SONARJAVA-4785] + + +endif::env-github,rspecator-view[]