From 250ec3a2fa0e0809b972f7c6c759dfc7f545b9f0 Mon Sep 17 00:00:00 2001 From: benzonico Date: Wed, 5 Apr 2017 16:57:08 +0200 Subject: [PATCH] SONARJAVA-2202 Update rule description and bug/code smell (#1368) --- .../l10n/java/rules/squid/S1068_java.html | 4 ++- .../l10n/java/rules/squid/S1116_java.json | 5 ++- .../l10n/java/rules/squid/S1120_java.json | 2 +- .../l10n/java/rules/squid/S112_java.html | 10 +++++- .../l10n/java/rules/squid/S112_java.json | 3 +- .../l10n/java/rules/squid/S1144_java.html | 4 ++- .../l10n/java/rules/squid/S1147_java.json | 3 +- .../l10n/java/rules/squid/S1149_java.json | 5 ++- .../l10n/java/rules/squid/S1155_java.json | 1 - .../l10n/java/rules/squid/S1186_java.html | 6 ++-- .../l10n/java/rules/squid/S1226_java.html | 11 +++--- .../l10n/java/rules/squid/S1226_java.json | 3 +- .../l10n/java/rules/squid/S1264_java.html | 4 +-- .../l10n/java/rules/squid/S135_java.json | 2 +- .../l10n/java/rules/squid/S1541_java.html | 3 ++ .../l10n/java/rules/squid/S1640_java.json | 5 ++- .../l10n/java/rules/squid/S1641_java.json | 5 ++- .../l10n/java/rules/squid/S1643_java.json | 5 ++- .../l10n/java/rules/squid/S1656_java.json | 1 - .../l10n/java/rules/squid/S1815_java.html | 9 ----- .../l10n/java/rules/squid/S1815_java.json | 13 ------- .../l10n/java/rules/squid/S1943_java.html | 24 +++++++++++-- .../l10n/java/rules/squid/S1943_java.json | 6 ++-- .../l10n/java/rules/squid/S2070_java.html | 19 ++++++---- .../l10n/java/rules/squid/S2077_java.html | 35 +++++++++++++++++-- .../l10n/java/rules/squid/S2112_java.json | 5 ++- .../l10n/java/rules/squid/S2129_java.json | 7 ++-- .../l10n/java/rules/squid/S2130_java.html | 2 +- .../l10n/java/rules/squid/S2130_java.json | 5 ++- .../l10n/java/rules/squid/S2131_java.html | 2 +- .../l10n/java/rules/squid/S2131_java.json | 7 ++-- .../l10n/java/rules/squid/S2133_java.json | 7 ++-- .../l10n/java/rules/squid/S2178_java.json | 5 ++- .../l10n/java/rules/squid/S2184_java.json | 1 + .../l10n/java/rules/squid/S2232_java.json | 3 +- .../l10n/java/rules/squid/S2276_java.html | 2 +- .../l10n/java/rules/squid/S2278_java.html | 1 + .../l10n/java/rules/squid/S2308_java.html | 2 +- .../l10n/java/rules/squid/S2308_java.json | 7 ++-- .../l10n/java/rules/squid/S2629_java.json | 5 ++- .../l10n/java/rules/squid/S2694_java.json | 7 ++-- .../l10n/java/rules/squid/S2718_java.json | 3 +- .../l10n/java/rules/squid/S2864_java.json | 5 ++- .../l10n/java/rules/squid/S3027_java.json | 5 ++- .../l10n/java/rules/squid/S3047_java.json | 5 ++- .../l10n/java/rules/squid/S3346_java.html | 2 -- .../l10n/java/rules/squid/S3346_java.json | 9 +++-- .../l10n/java/rules/squid/S3631_java.json | 7 ++-- .../l10n/java/rules/squid/S3725_java.json | 2 +- .../java/rules/squid/Sonar_way_profile.json | 3 +- 50 files changed, 160 insertions(+), 137 deletions(-) delete mode 100644 java-checks/src/main/resources/org/sonar/l10n/java/rules/squid/S1815_java.html delete mode 100644 java-checks/src/main/resources/org/sonar/l10n/java/rules/squid/S1815_java.json diff --git a/java-checks/src/main/resources/org/sonar/l10n/java/rules/squid/S1068_java.html b/java-checks/src/main/resources/org/sonar/l10n/java/rules/squid/S1068_java.html index c41a8898274..ba7affc60f8 100644 --- a/java-checks/src/main/resources/org/sonar/l10n/java/rules/squid/S1068_java.html +++ b/java-checks/src/main/resources/org/sonar/l10n/java/rules/squid/S1068_java.html @@ -1,5 +1,7 @@

If a private field is declared but not used in the program, it can be considered dead code and should therefore be removed. This will improve maintainability because developers will not wonder what the variable is used for.

+

Note that this rule does not take reflection into account, which means that issues will be raised on private fields that are only +accessed using the reflection API.

Noncompliant Code Example

 public class MyClass {
@@ -30,7 +32,7 @@ 

Exceptions

private static final long serialVersionUID = 42L; }
-

Moreover, this rule doesn't raise any issue on annotated fields.

+

Moreover, this rule doesn't raise any issue on annotated fields.

See

See