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