Skip to content

Commit dcd883c

Browse files
SONARJAVA-6409 Update spotbugs rule descriptions (#5640)
1 parent 3ff7a8f commit dcd883c

1 file changed

Lines changed: 17 additions & 3 deletions

File tree

external-reports/src/main/resources/org/sonar/l10n/java/rules/spotbugs/spotbugs-rules.json

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
},
3737
{
3838
"key": "AT_NONATOMIC_64BIT_PRIMITIVE",
39-
"name": "Multi-threading - This write of this 64-bit primitive variable may not atomic",
39+
"name": "Multi-threading - This write of this 64-bit primitive variable may not be atomic",
4040
"type": "BUG",
4141
"severity": "MAJOR",
4242
"url": "https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#at-nonatomic-64bit-primitive"
@@ -365,6 +365,13 @@
365365
"severity": "MAJOR",
366366
"url": "https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#ct-constructor-throw"
367367
},
368+
{
369+
"key": "CWO_CLOSED_WITHOUT_OPENED",
370+
"name": "Multi-threading - Method releases lock without opening it",
371+
"type": "BUG",
372+
"severity": "MAJOR",
373+
"url": "https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#cwo-closed-without-opened"
374+
},
368375
{
369376
"key": "DB_DUPLICATE_BRANCHES",
370377
"name": "Style - Method uses the same code for two branches",
@@ -624,9 +631,16 @@
624631
"severity": "MAJOR",
625632
"url": "https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#dmi-long-bits-to-double-invoked-on-int"
626633
},
634+
{
635+
"key": "DMI_MISLEADING_SUBSTRING",
636+
"name": "Style - Invocation of substring(0), which returns the same as toString()",
637+
"type": "CODE_SMELL",
638+
"severity": "MAJOR",
639+
"url": "https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#dmi-misleading-substring"
640+
},
627641
{
628642
"key": "DMI_NONSERIALIZABLE_OBJECT_WRITTEN",
629-
"name": "Style - Non serializable object written to ObjectOutput",
643+
"name": "Style - Non-serializable object written to ObjectOutput",
630644
"type": "CODE_SMELL",
631645
"severity": "MAJOR",
632646
"url": "https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#dmi-nonserializable-object-written"
@@ -1585,7 +1599,7 @@
15851599
},
15861600
{
15871601
"key": "J2EE_STORE_OF_NON_SERIALIZABLE_OBJECT_INTO_SESSION",
1588-
"name": "Bad practice - Store of non serializable object into HttpSession",
1602+
"name": "Bad practice - Store of non-serializable object into HttpSession",
15891603
"type": "CODE_SMELL",
15901604
"severity": "MAJOR",
15911605
"url": "https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#j2ee-store-of-non-serializable-object-into-session"

0 commit comments

Comments
 (0)