22 lines
499 B
Plaintext
22 lines
499 B
Plaintext
![]() |
include::../description.adoc[]
|
||
|
|
||
|
include::../noncompliant.adoc[]
|
||
|
|
||
|
include::../compliant.adoc[]
|
||
|
|
||
|
== Exceptions
|
||
|
|
||
|
Members annotated with Guava's <code>@VisibleForTesting</code> annotation are ignored, as it indicates that visibility has been purposely relaxed to make the code testable.
|
||
|
|
||
|
----
|
||
|
public final class MyFinalClass {
|
||
|
@VisibleForTesting
|
||
|
protected Logger logger; // Compliant
|
||
|
|
||
|
@VisibleForTesting
|
||
|
protected int calculateSomethingComplex(String input) { // Compliant
|
||
|
// ...
|
||
|
}
|
||
|
}
|
||
|
----
|