Skip to content

Commit

Permalink
Delete rule S6896: rule is already implemented by S6322 (#3613)
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardo-pilastri-sonarsource authored Feb 6, 2024
1 parent 5378180 commit 3dc67ee
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion rules/S6896/java/metadata.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
11 changes: 11 additions & 0 deletions rules/S6896/java/rule.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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[]

0 comments on commit 3dc67ee

Please sign in to comment.