41 lines
805 B
Plaintext
41 lines
805 B
Plaintext
== Why is this an issue?
|
||
|
||
include::../description.adoc[]
|
||
|
||
include::../noncompliant.adoc[]
|
||
|
||
include::../compliant.adoc[]
|
||
|
||
=== Exceptions
|
||
|
||
Members annotated with ``++@VisibleForTesting++`` 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
|
||
// ...
|
||
}
|
||
}
|
||
----
|
||
|
||
ifdef::env-github,rspecator-view[]
|
||
|
||
'''
|
||
== Implementation Specification
|
||
(visible only on this page)
|
||
|
||
include::../message.adoc[]
|
||
|
||
include::../highlighting.adoc[]
|
||
|
||
'''
|
||
== Comments And Links
|
||
(visible only on this page)
|
||
|
||
include::../comments-and-links.adoc[]
|
||
endif::env-github,rspecator-view[]
|