From a39e170b23bd487352b613d58fe856f7c388d235 Mon Sep 17 00:00:00 2001 From: Johann Beleites Date: Mon, 4 Mar 2024 17:56:32 +0100 Subject: [PATCH] SONARJAVA-4814 Improved S1948 RSPEC to better explain why public collections are a problem (#4698) --- .../resources/org/sonar/l10n/java/rules/java/S1948.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/sonar-java-plugin/src/main/resources/org/sonar/l10n/java/rules/java/S1948.html b/sonar-java-plugin/src/main/resources/org/sonar/l10n/java/rules/java/S1948.html index b372f22c88e..9dc9caa5127 100644 --- a/sonar-java-plugin/src/main/resources/org/sonar/l10n/java/rules/java/S1948.html +++ b/sonar-java-plugin/src/main/resources/org/sonar/l10n/java/rules/java/S1948.html @@ -9,10 +9,11 @@

Why is this an issue?

not exhibit unexpected behaviour when an instance is serialized.

This rule raises an issue on:

How to fix it

Consider the following scenario.